Category : C Source Code
Archive   : C_TEXT.ZIP
Filename : CLEAR.ASM

 
Output of file : CLEAR.ASM contained in archive : C_TEXT.ZIP

;--------------------------------------------------------------------------;
; Clear(attr) - attr is the attribute for blank lines ;
;--------------------------------------------------------------------------;

ASSUME CS:_TEXT
_TEXT SEGMENT BYTE PUBLIC 'CODE'
PUBLIC _CLEAR
_CLEAR PROC NEAR
PUSH BP
MOV BP,SP
PUSH DI
PUSH SI
PUSH DS
PUSH ES

MOV BH,[BP+4] ;Attribute character

MOV AH,6 ;Service 6, Scroll
XOR AL,AL ;Clear Section
XOR CX,CX ;Upper left 0,0
MOV DX,184Fh ;Lower right 24,79
INT 10h

POP ES
POP DS
POP SI
POP DI
POP BP
RET
_CLEAR ENDP

_TEXT ENDS
END