port() & int86()

Thread Starter

vaidhya

Joined Jan 3, 2008
6
Thanks ......

by this command can we control the monitors setup ........?

if there any examples .... kindly give me >>>>>>>>
 

bloguetronica

Joined Apr 27, 2007
1,544
Thanks ......

by this command can we control the monitors setup ........?

if there any examples .... kindly give me >>>>>>>>
Yes, you can call video modes with int86 (). Here is a routine to do that:
Rich (BB code):
#include <dos.h>

union REGS r;
...
void CallVideoMode (short mode)
{
    r.h.ah = 0x00;
    r.h.al = mode;
    int86 (0x10, &r, &r);
}
As you can see, you use interrupt 10h to call display services.
 
Top