AH = 06h: Scroll Window Up
This function scrolls the contents of a specified rectangular region in the display up a specified 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 having the specified attribute. The number of lines to be scrolled is passed in AL. If AL=0, the entire window is blanked.
- Input: AH = 06h
AL = Number of lines to scroll (0 = blanks entire scroll area) BH = Attribute of blanked lines (alpha mode) or Fill character for blanked lines (graphics mode)
CH = r1 Row address of character in upper left corner of window
CL = c1 Column address of character in upper left corner of window
DH = r2 Row address of character in lower right corner of window
DL = c2 Column address of character in lower right corner of window
- Output: None
- Error conditions: None
- Registers modified: None
As a special case (AL = 0), this routine may be used to initialize a rectangular section of the display to all blanks with a specified attribute.
In text modes that support multiple pages, this function affects only the page currently being displayed. The window is specified by providing the row and column addresses of the upper left and lower right corners. The video mode may be either Text or Graphics.