gb6/src/old/emulator.h

50 lines
872 B
C
Raw Normal View History

2019-04-16 07:20:16 +00:00
/* Game Boy emulator for 68k Macs
Compiled with Symantec THINK C 5.0
(c) 2013 Matt Laux
emulator.h - declarations for emulator.c */
#ifndef EMULATOR_H
#define EMULATOR_H
#define WINDOW_TITLE "\pEmulator"
#define WINDOW_X 100
#define WINDOW_Y 100
#define WINDOW_WIDTH 256
#define WINDOW_HEIGHT 256
#define ALRT_NOT_ENOUGH_RAM 128
#define ALRT_4_LINE 129
#define DLOG_ABOUT 128
#define MBAR_DEFAULT 128
#define MENU_APPLE 128
#define MENU_FILE 129
#define MENU_EMULATION 130
#define APPLE_ABOUT 1
#define FILE_OPEN 1
#define FILE_SCREENSHOT 2
#define FILE_QUIT 4
#define EMULATION_PAUSE 1
#define EMULATION_PREFERENCES 3
#define EMULATION_KEY_MAPPINGS 4
typedef unsigned char bool;
#define true 1
#define false 0
typedef struct _emu_state {
z80_state *cpu;
u8 *rom;
unsigned long int romLength;
} emu_state;
extern emu_state theState;
#endif