Qbasicnews.com

Full Version: Good Old Screen Resolution
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
any1 got the address for the screen adapter, so i can change the resolution? The address &HA000 doesn't allow me to do 2 much........

Alex~
For VGA you've got an interrupt 0x13 to do it.
For VESA interrupt 0x10.
Quote:For VGA you've got an interrupt 0x13 to do it.

For VGA you also have int 10h. 13h is what you put in AL: the screen mode.
Oh, sorry for that mixup =(
so sumthing like this?
Code:
DIM RegData(1 to 2) AS RegTypeX
CALL INTERRUPTX &H10, RegData(1), RegData(2)
What do i use for ax, bx, cx, dx?

Alex~
AL = Screen mode, AH = 0, int 10h => Set screen mode.
Just curious - what port state would I alter in order to change the screen mode, if I didn't want to use an interrupt? (assuming I'd be dealing with ports here)