home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pcmagazi
/
1990
/
05
/
ansix.scr
< prev
next >
Wrap
Text File
|
1989-04-25
|
846b
|
31 lines
N ANSIX.COM
A100
JMP 010D ;skip over data
E 102 1B'[6n$'
E 107 0D 20 20 20 20 '$'
A10D
MOV DX,102 ;display the ANSI DSR string
MOV AH,09 ; to see if ANSI is loaded
INT 21
MOV AH,0B ;check for key in the keyboard
INT 21 ; buffer -- if there's anything
CMP AL,FF ; there, ANSI is loaded
JZ 0128 ;go empty the buffer
MOV DX,107 ;erase the garbage left by the
MOV AH,09 ; DSR string
INT 21
MOV AX,4C00 ;exit w/ errorlevel 0
INT 21
MOV AH,6 ;get key from keyboard buffer
MOV DL,FF ; don't wait if buffer is empty
INT 21 ; and don't print it to the screen.
JNZ 128 ;go back for more 'til buffer is empty
MOV AX,4C01 ;exit w/ errorlevel 1
INT 21
RCX
35
W
Q