Windows.


- 3


//

//Paral.h -

//,

//

#define KEYBOARD 009 //

// INT 9h

#define RIGHT_ARROW_PRESSED 77

#define RIGHT_arrow_rel 205

#define LEFT_ARROW_PRESSED 75

#define LEFT_ARROW_REL 203

#define ESC_PRESSED 129

#define UP_ARROW_PRESSED 72

#define UP_ARROW_REL 200

#define DOWN_ARROW_PRESSED 80

#define down_arrow_rel 208

#define VIEW_WIDTH 320

#define VIEW_HEIGHT 150

#define MEMBLK VIEW_WIDTH*VIEW HEIGHT

#define TRANSPARENT 0 //

#define TOTAL_SCROLL 320

enum (NORMAL, RLE},;

enum (FALSE,TRUE};

typedef struct

{

char manufacturer; /* 0 */

char version; /* 5 256- */

char encoding; /* 1 */

char bits_per_pixel;

/* 8 256- */

int xmin, ymin; /* */

int xmax,ymax; /* */

int hres; /* */

int vres; /* */

char palettel6[48];

/* EGA; 256- */

char reserved; /* */

char color planes; /* */

int bytes_per_line;

/* */

int palette_type;

/* 2 */

char filler[58]; /* */

} PcxHeader;

typedef struct

{

PcxHeader hdr;

char *bitmap;

char pal[768] ;

unsigned imagebytes,width,height;

} PcxFile;

#define PCX_MAX_SIZE 64000L enum {PCX_OK,PCX_NOMEM,PCX_TOOBIG,PCX_NOFILE};

#ifdef __cplusplus

extern "C" {

#endif

int ReadPcxFile(char *filename,PcxFile *pcx);

void _interrupt NewInt9(void) ;

void RestoreKeyboard(void);

void InitKeyboard(void);

void SetAllRgbPalette(char *pal);

void InitVideo (void);