home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
CPROG
/
CEXPRESS.ZIP
/
KEYBOARD.ASM
/
CLEARCHR.ASM
< prev
next >
Wrap
Assembly Source File
|
1989-05-03
|
383b
|
19 lines
;char clear_char();
EXTRN _memory_model:byte
_TEXT SEGMENT BYTE PUBLIC 'CODE'
ASSUME CS:_TEXT
PUBLIC _clear_char
_clear_char proc near
mov ah,0ch ;DOS function number
mov al,7 ;keyboard read function
int 21h ;wait for a keystroke
cmp _memory_model,0 ;quit
jle quit ;
db 0CBh ;RET far
quit: ret ;RET near
_clear_char ENDP
_TEXT ENDS
END