Page 1 of 1

A stupid question...

Posted: Thu Jul 04, 2002 6:35 pm
by E2X
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...

Posted: Thu Jul 04, 2002 10:33 pm
by crazybuddha
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.

Re:A stupid question...

Posted: Fri Jul 05, 2002 6:14 pm
by E2X
Ok, thanks ;D