Message board for the users of flat assembler.
> DOS > 3 questions...
1. How do you check for keypresses?
2. How do you set console cursor postion?
3. How do you empty the screen to blank?
----> * <---- My star, won HERE
|08 Aug 2004, 03:04||
well, there are may ways to do the following, so i'll give you some simple ways:
INT 10 - VIDEO - SET CURSOR POSITION
AH = 02h
BH = page number
0-3 in modes 2&3
0-7 in modes 0&1
0 in graphics modes
DH = row (00h is top)
DL = column (00h is left)
INT 10 - VIDEO - SCROLL UP WINDOW
AH = 06h
AL = number of lines by which to scroll up (00h = clear entire window)
BH = attribute used to write blank lines at bottom of window
CH,CL = row,column of window's upper left corner
DH,DL = row,column of window's lower right corner
Note: affects only the currently active page (see AH=05h)
BUGS: some implementations (including the original IBM PC) have a bug which
or, you can just write 00's to the video buffer.
It is better to be on the right side of the devil than in his path.
|08 Aug 2004, 06:50||
< Last Thread | Next Thread >
Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.
Website powered by rwasa.