( ) - 5


"\n <>: 0 - , "

"1 - " );

}

SYSP.H, TEXTATTR.C, , 3.2. SYSP.H FP_MAKE, .

3.2. SYSP.H

// FP_MAKE

//

#define FP_MAKE(seg,off) ((void far *) \

((((unsigned long) (unsigned)(seg)) << 16L) | \

((unsigned long) (unsigned) (off))))

SYSGRAPH.H , . SYSGRAPH.H 3.3.

3.2. SYSGRAPH.H

#pragma pack(1)


//

typedef struct _VIDEOBUF_ {

unsigned char chr;

unsigned char attr;

} VIDEOBUF;


// BIOS

typedef struct _BIOS_VAR_ {

unsigned char bEquipFlags;

unsigned char bReserv1[0x38];

unsigned char bVideoMode;

unsigned wColumns;

unsigned wPageLength;

unsigned wVidStart;

unsigned w8CursorPos[8];

unsigned wCursorShape;

unsigned char bActivePage;

unsigned wAddrCRT;

unsigned char bRegMode;

unsigned char bRegPalette;

unsigned char bReserv2[0x1D];

unsigned char bRows;

unsigned wCharHigh;

unsigned char bInfo;

unsigned char bInfoTwo;

unsigned char bReserv3[0x1F];

void far dwSavePtr;

} BIOS_VAR;


// ( )

typedef struct _RGB_ {

unsigned char red;

unsigned char green;

unsigned char blue;

} RGB;


#pragma pack()