kopia lustrzana https://github.com/Jean-MarcHarvengt/MCUME
103 wiersze
1.8 KiB
C
103 wiersze
1.8 KiB
C
#ifndef __ATARI__
|
|
#define __ATARI__
|
|
|
|
// define globals
|
|
#define MEMORY_SIZE 0xC000 //0x10000
|
|
|
|
#define ATARI_WIDTH 384
|
|
#define ATARI_HEIGHT 240
|
|
#define TV_PAL 312
|
|
#define TV_NTSC 262
|
|
|
|
//#define DIRTYRECT 1
|
|
//#define WORDS_UNALIGNED_OK 1
|
|
//#define ALTERNATE_LOOP_COUNTERS 1
|
|
//#define NEW_CYCLE_EXACT 1
|
|
//#define USE_CURSES 1
|
|
//#define WORDS_BIGENDIAN 1
|
|
//#define SYNCHRONIZED_SOUND 1
|
|
#define CLIP_SOUND 1
|
|
#define STEREO_SOUND 1
|
|
#define POKEYSND_SIGNED_SAMPLES 1
|
|
#define PAGED_MEM 1
|
|
#define SOUND 1
|
|
#define NO_SIMPLE_PAL_BLENDING 1
|
|
|
|
#define max_ypos tv_mode
|
|
|
|
extern int tv_mode;
|
|
extern unsigned char INPUT_key_consol;
|
|
|
|
enum ESCAPE {
|
|
ESC_SIOV,
|
|
/*
|
|
* These are special device escape codes required by the Basic version
|
|
*/
|
|
ESC_E_OPEN,
|
|
ESC_E_CLOSE,
|
|
ESC_E_READ,
|
|
ESC_E_WRITE,
|
|
ESC_E_STATUS,
|
|
ESC_E_SPECIAL,
|
|
|
|
ESC_K_OPEN,
|
|
ESC_K_CLOSE,
|
|
ESC_K_READ,
|
|
ESC_K_WRITE,
|
|
ESC_K_STATUS,
|
|
ESC_K_SPECIAL,
|
|
/*
|
|
* These are Escape codes for the normal device handlers.
|
|
* Some are never used and some are only sometimes used.
|
|
*/
|
|
|
|
ESC_PHOPEN = 0xb0,
|
|
ESC_PHCLOS = 0xb1,
|
|
ESC_PHREAD = 0xb2,
|
|
ESC_PHWRIT = 0xb3,
|
|
ESC_PHSTAT = 0xb4,
|
|
ESC_PHSPEC = 0xb5,
|
|
ESC_PHINIT = 0xb6,
|
|
|
|
ESC_HHOPEN = 0xc0,
|
|
ESC_HHCLOS = 0xc1,
|
|
ESC_HHREAD = 0xc2,
|
|
ESC_HHWRIT = 0xc3,
|
|
ESC_HHSTAT = 0xc4,
|
|
ESC_HHSPEC = 0xc5,
|
|
ESC_HHINIT = 0xc6,
|
|
ESC_BREAK = 0xff
|
|
};
|
|
|
|
#ifndef _TYPEDEF_H
|
|
#define _TYPEDEF_H
|
|
|
|
//data types
|
|
#define UBYTE unsigned char
|
|
#define UWORD unsigned short
|
|
#define ULONG unsigned int
|
|
|
|
#define SBYTE signed char
|
|
#define SWORD signed short
|
|
#define SLONG signed int
|
|
|
|
#define int8 char
|
|
#define int16 short
|
|
#define int32 int
|
|
|
|
#define uint8 unsigned int8
|
|
#define uint16 unsigned int16
|
|
#define uint32 unsigned int32
|
|
#ifndef FALSE
|
|
#define FALSE 0
|
|
#endif
|
|
#ifndef TRUE
|
|
#define TRUE 1
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|