Windows.


Tombstone


, VGA-. . , , . , Tombstone.

. , "" . PCX- . Set_Mode() ­ 5.16. Set_Mode(), .

5.16. Tombstone (TOMB.).

//

/////////////////////////////////////////////

#include <io.h>

#include <conio.h>

#include <stdio.h>

#include <stdlib.h>

#include <dos.h>

#include <bios.h>

#include <fcntl.h>

#include <memory.h>

#include <math.h>

#include <string.h>

// //////////////////////////////////////////////////

#define ROM_CHAR_SET_SEG

0xF000 //

#define ROM_CHAR_SET_OFF

0xFA6E // ,

//

#define VGA256 013

#define TEXT_MODE 003

#define PALETTE_MASK C6

#define PALETTE_REGISTER_RD 0x3C7

#define PALETTE_REGISTER_WR 0x3C8

#define PALETTE_DATA 0x3C9

#define SCREEN_WIDTH (unsigned int)320

#define SCREEN_HEIGHT (unsigned int)200

#define CHAR_WIDTH 8

#define CHAR_HEIGHT 8

#define SPRITE_MIDTH 24

#define SPRITE_HEIGHT 24

#define MAX_SPRITE_FRAMES 16

#define SPRITE_DEAD 0

#define sprite_alive 1

#define SPRITE_DYING 2

//

////////////////////////////////////////

typedef struct RGB_color_typ

{

unsigned char red; // (0-63)

unsigned char green; // (0-63)