Re: help

Kelvin Ng (kelvinng@iname.com) Wed, 16 Feb 2000 08:08:57 -0800


Date: Wed, 16 Feb 2000 08:08:57 -0800
From: Kelvin Ng <kelvinng@iname.com>
Subject: Re: help


The characters entered did not got printed twice. It was displayed once when you entered it by DOS, and then printed once by your program. Kelvin At 01:51 AM 2/16/00 -0800, Eric Wei wrote: >I wrote this code to test whether I can print an input from keyboard to >the screen. However, when I run the code, I ended up getting the input >printed twice. Could someone please help me with this? Thanks > >Eric > >code segment public > assume cs: code, ds: code > org 100h > >start: > mov ah, 1 > int 21h > cmp al, 36 > jz done > push ax > push dx > mov dl, al > mov ah, 2 > int 21h > pop dx > pop ax > jmp start > >done: > int 20h > >code ends > end start