NAR-5620 Series
User
’
s
Manual
34
mov dx,0edh
in
al,dx
pop dx
pop ax
ret
IODELAY ENDP
KB_wait PROC
near
push ax
push bx
push cx
push dx
lea dx,PROMP_Qkey
mov ah,9
; Display "Q" key prompt
int 21h
xor al,al
WAIT_KB:
mov ah,1
int 21h
cmp al,0
je WAIT_KB
cmp al,51h ; "Q" pressed ?
je test_fail
cmp al,71h ; "q" pressed ?
jne call_return