A stupid question...

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
E2X

A stupid question...

Post 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 :-\ )?
crazybuddha

Re:A stupid question...

Post 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.
E2X

Re:A stupid question...

Post by E2X »

Ok, thanks ;D
Post Reply