Re: help

Eric Wei (ewei@physics.ubc.ca) Wed, 16 Feb 2000 01:51:34 -0800


From: "Eric Wei" <ewei@physics.ubc.ca>
Subject: Re: help
Date: Wed, 16 Feb 2000 01:51:34 -0800


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