A stupid question...
A stupid question...
Hi, umm...I was wondering, what interrupt do I use to get the screen resolution in pixels (or don't you use an interrupt? Sorry, I'm new to Assembley :-\ )?
Re:A stupid question...
Assuming you are using VGA
mov ah, 0x0f ; get current video mode
Int 0x10
returns:
AH = number of columns on screen
AL = current video mode
BH = active page (vga video memory is divided into pages)
I've never used this, so take it for what it's worth.
mov ah, 0x0f ; get current video mode
Int 0x10
returns:
AH = number of columns on screen
AL = current video mode
BH = active page (vga video memory is divided into pages)
I've never used this, so take it for what it's worth.