/* SYSGRAPH.H - include-файл для примеров, приведенных в книге */


#pragma pack(1)

typedef struct _BIOS_VAR_ {
	unsigned char  equipment_flag;
	unsigned char  reserv1[0x38];
	unsigned char  video_mode;
	unsigned       columns;
	unsigned       page_length;
	unsigned       start_addr;
	unsigned       cursor_position[8];
	unsigned       cursor_shape;
	unsigned char  active_page;
	unsigned       crt_address;
	unsigned char  mode_reg_data;
	unsigned char  palette;
	unsigned char  reserv2[0x1D];
	unsigned char  rows;
	unsigned       char_height;
	unsigned char  ega_info_1;
	unsigned char  ega_info_2;
	unsigned char  reserv3[0x1f];
	void far       *environ_ptr;
} BIOS_VAR;


typedef struct _RGB_ {
	unsigned char red;
	unsigned char green;
	unsigned char blue;
} RGB;



#pragma pack()
