Int 10H [MDA] [CGA] [PCjr] [EGA] [MCGA] [VGA] Function 06H Initialize or scroll window up

Initializes a specified window of the display to ASCII blank characters with a given attribute or scrolls up the contents of a window by a specified number of lines.

Call with:

AH = 06H

AL = number of lines to scroll (if zero, entire window is

blanked)

BH = attribute to be used for blanked area

CH = y coordinate, upper left corner of window

CL = x coordinate, upper left corner of window

DH = y coordinate, lower right corner of window

DL = x coordinate, lower right corner of window

Returns:

Nothing

Notes:

In video modes that support multiple pages, this function affects only the page currently being displayed.

If AL contains a value other than 00H, the area within the specified window is scrolled up by the requested number of lines. Text that is scrolled beyond the top of the window is lost. The new lines that appear at the bottom of the window are filled with ASCII blanks carrying the attribute specified by register BH.

To scroll down the contents of a window, see Int 10H Function 07H.