;This program inputs ascii chars and prints them on the screen until
;the return key is pressed
;
lp: mov ah, 0 ;wait until key is pressed
; (until key in queue)
int 16h ;keyboard int - ascii char in al
mov bh, 0 ;video screen 0
mov ah, 0eh ;write teletype
int 10h
cmp al, 0dh ;is it a carriage return??
jne lp
int 20h
end