Салям!
25-Июл-2005 21:02 [EMAIL PROTECTED] (Eric Auer) wrote to
[email protected]:
>> #define MAX_X (*(unsigned int far*)MK_FP(0x40, 0x4a))
>> #define MAX_Y (*(unsigned char far*)MK_FP(0x40, 0x84))
>> #define SCREEN_COLS MAX_X
>> #define SCREEN_ROWS (MAX_Y + 1)
>> max_x is more or less a misnomer... but screen_cols=40:4a is okay
>> max_y also used in incline, tab completion, f5 key, typing.
______________O\_/_________________________________\_/O______________
extern volatile const word far & screen_width;
extern volatile const word far & screen_offset;
extern volatile const byte far & screen_height;
extern volatile const word far & char_height;
extern volatile const byte far & screen_mode;
#define scrwidth (screen_width)
#define scrheight (screen_height ? screen_height + 1 : 25)
#define charheight (char_height ? char_height : 8)
_____________________________________________________________________
O/~\ /~\O
______________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));
_____________________________________________________________________
O/~\ /~\O
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel