Hi!
8-Май-2004 18:26 [EMAIL PROTECTED] (Diego Iastrubni) wrote to
[EMAIL PROTECTED]:
DI> I dont get it... Page N is in B800:[80x*25*N] right?
No:
______________O\_/_________________________________\_/O______________
volatile const word far &screen_width = *(const word far*) MK_FP (0, 0x44A);
volatile const word far &screen_offset = *(const word far*) MK_FP (0, 0x44E);
volatile const byte far &screen_height = *(const byte far*) MK_FP (0, 0x484);
volatile const word far &char_height = *(const word far*) MK_FP (0, 0x485);
volatile const byte far &screen_mode = *(const byte far*) MK_FP (0, 0x449);
#define scrwidth (screen_width)
#define scrheight (screen_height ? screen_height + 1 : 25)
#define charheight (char_height ? char_height : 8)
_____________________________________________________________________
O/~\ /~\O
Ie. size of screen defined as scrwidth*scrheight. Active video page number
you may find as *(const byte far*)MK_FP(0, 0x462), but better to use "Offset
from video segment to active video memory page" (screen_offset).
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel