Hi, I was wondering....How do I scroll in assembly. Also where in the buffer does the scrolled up/dn part of the page go.
Thanks in advance....NANOSAURUS
You can scroll a DOS text screen by calling int10h with AH = 06h to scroll the page up, or AH = 07h to scroll the page down. The value in AL is the number of lines to scroll.
BH = character for 'blank lines'
CH & CL = row and column of upper left corner
DH & CL = row and column of lower right corner
NOTES:
To clear out the window, set al=0. You may set it so that al>number of rows, but some BIOS implementations don't handle that properly. al=0 is slow on some implementations, but some check for that condition and immediately clear out the window. al=0 is the most portable if you want to clear a portion of the screen.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.