home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
pcmag
/
vol5n15.arc
/
CS.SCR
< prev
next >
Wrap
Text File
|
1986-08-05
|
688b
|
43 lines
N CS.COM
A 100
MOV DL,18 ; 24 columns default
SUB BH,BH ; Get number of columns
MOV AX,1130
INT 10
MOV AH,0F ; Get video information
INT 10
DEC AH
MOV CH,DL
MOV CL,AH ; CX = maximum row and col
MOV AH,00 ; Graphics attribute
CMP AL,07 ; See if monochrome mode
JZ 011D
CMP AL,03 ; See if text mode
JA 012D
MOV DL,20 ; Write space to display
MOV AH,02
INT 21
MOV AL,08 ; Backspace
MOV AH,0E
INT 10
MOV AH,08 ; Read attribute
INT 10
PUSH BX ; Save video page
MOV BH,AH ; Clear screen
MOV DX,CX
SUB CX,CX
MOV AX,0600
INT 10
POP BX ; Get back video page
SUB DX,DX ; Home cursor
MOV AH,02
INT 10
INT 20
R CX
42
W
Q