Assembly Language Help (alang.hlp) (
Table of Contents;
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
ClearBox
◄Map► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
;* ClearBox - Clears portion of screen with specified fill attribute.
;*
;* Shows: BIOS Interrupt - 10h, Function 6 (Scroll Up)
;*
;* Params: Attr - Fill attribute
;* Row1 - Top screen row of cleared section
;* Col1 - Left column of cleared section
;* Row2 - Bottom screen row of cleared section
;* Col2 - Right column of cleared section
;*
;* Return: None
ClearBox PROC,
Attr:WORD,
Row1:WORD,
Col1:WORD,
Row2:WORD,
Col2:WORD
mov ax, 0600h ; Scroll service
mov bh, BYTE PTR Attr ; BH = fill attribute
mov ch, BYTE PTR Row1 ; CH = top row of clear area
mov cl, BYTE PTR Col1 ; CL = left column
mov dh, BYTE PTR Row2 ; DH = bottom row of clear area
mov dl, BYTE PTR Col2 ; DL = right column
int 10h ; Clear screen by scrolling up
ret
ClearBox ENDP
-♦-