How to get display's resolution?

OS Design, Theory, and Programming

Moderator: Moderators

Post Reply
Posts: 8
Joined: Sat Apr 25, 2009 6:11 pm

How to get display's resolution?

Post by Matrix7 » Mon Mar 15, 2010 7:49 am

I want to know how to get display's resolution by call bios interrupt

User avatar
Site Admin
Posts: 465
Joined: Sat Oct 20, 2007 7:58 pm

Re: How to get display's resolution?

Post by Mike » Tue Mar 16, 2010 10:18 pm


There is no standard VGA BIOS interrupt for obtaining the current video modes' resolution. However, you can get the current video mode and obtain its resolution based on the video mode number, or read the information directly via VGA registers.
Lead Programmer for BrokenThorn Entertainment, Co.

Post Reply