First post, by emendelson
I've been experimenting with custom video modes in int10_modes.cpp, but I don't fully understand all the items in the mode list. The first few lines look like this:
/* mode ,type ,sw ,sh ,tw ,th ,cw,ch ,pt,pstart ,plength,htot,vtot,hde,vde special flags */
{ 0x000 ,M_TEXT ,360 ,400 ,40 ,25 ,9 ,16 ,8 ,0xB8000 ,0x0800 ,50 ,449 ,40 ,400 ,_EGA_HALF_CLOCK },
{ 0x001 ,M_TEXT ,360 ,400 ,40 ,25 ,9 ,16 ,8 ,0xB8000 ,0x0800 ,50 ,449 ,40 ,400 ,_EGA_HALF_CLOCK },
{ 0x002 ,M_TEXT ,720 ,400 ,80 ,25 ,9 ,16 ,8 ,0xB8000 ,0x1000 ,100 ,449 ,80 ,400 ,0 },
I can figure out some of the abbreviations in the top row, but not all, and would be grateful for any help. Here's what I understand, more or less:
mode = mode number (of course)
type = text, graphic, etc.
sw, sh = width and height in pixels???
tw, th = width and height in columns and rows???
cw, ch = character width and height in pixels
pt = point size???
pstart, plength = start and length of BIOS region???
htot, wtot = ???
hde, vde = ???
special flags = self-explanatory
I would be very grateful for any clarification - or for a pointer of where to look for one. Thanks for any help.