![]()
|
The PDF Version
void StandardVideoMode(int mode)
{asm{mov ax,mode
int 10h
}
} |
void StandardVideoMode(int mode)
{union REGS regs;
regs.x.ax=mode;
int86(0x10,®s,®s);
} |
void Video::StandardVideoMode(short mode)
{ union REGS regs;
regs.x.ax=mode;
if(!ClearMem)
{regs.x.ax+=128;
}
if(mode == 0x13)
{Screen_Width=320;
Screen_Height=200;
Screen_Size=64000;
}
if(mode == 3)
{Screen_Width=80;
Screen_Height=25;
Screen_Size=4000;
}
int86(0x10,®s,®s);
CurrentVideoMode=mode;
Move2Vid = &Video::MoveMemStandard;
XCenter=Screen_Width >> 1;
YCetner=Screen_Height >>1;
} |
| Mode Number | Description |
| 0 | 40x25 Text Mode, 16 colors |
| 1 | 40x25 Text Mode, 16 colors |
| 2 | 80x25 Text Mode, 16 colors |
| 3 | 80x25 Text Mode, 16 colors |
| 4 | 320x200 Graphics Mode 4 colors |
| 5 | 320x200 Graphics Mode 4 colors |
| 6 | 640x200 Graphics Mode 2 colors |
| 7 | 80x25 Text Mode, Mono |
| 8 | Undocumented |
| 9 | Undocumented |
| 10 | Undocumented |
| 11 | Undocumented |
| 12 | Undocumented |
| 13 | 320x200 Graphics Mode, 16 colors |
| 14 | 640x200 Graphics Mode, 16 colors |
| 15 | 640x350 Graphics Mode, Mono |
| 16 | 640x350 Graphics Mode, 16 colors |
| 17 | 640x480 Graphics Mode, 2 colors |
| 18 | 640x480 Graphics Mode, 16 colors |
| 19 | 320x200 Graphics Mode, 256 colors |