view src/gb/gbGlobals.cpp @ 76:d7c38ce83421

working on disk-backup for save-states
author Robert McIntyre <rlm@mit.edu>
date Thu, 08 Mar 2012 19:48:54 -0600
parents f9f4f1b99eed
children
line wrap: on
line source
1 #include "../Port.h"
2 #include "GB.h"
4 u8 *gbMemoryMap[16];
6 int32 gbRomSizeMask = 0;
7 int32 gbRomSize = 0;
8 int32 gbRamSizeMask = 0;
9 int32 gbRamSize = 0;
11 u8 * gbMemory = NULL;
12 u8 * gbVram = NULL;
13 u8 * gbRom = NULL;
14 u8 * gbRam = NULL;
15 u8 * gbWram = NULL;
16 u16 *gbLineBuffer = NULL;
18 u16 gbPalette[128];
19 u8 gbBgp[4] = { 0, 1, 2, 3};
20 u8 gbObp0[4] = { 0, 1, 2, 3};
21 u8 gbObp1[4] = { 0, 1, 2, 3};
22 int32 gbWindowLine = -1;
24 int32 gbCgbMode = 0;
26 u16 gbColorFilter[32768];
27 int32 gbColorOption = 0;
28 int32 gbPaletteOption = 0;
29 int32 gbEmulatorType = 0;
30 int32 gbBorderOn = 1;
31 int32 gbBorderAutomatic = 0;
32 int32 gbBorderLineSkip = 160;
33 int32 gbBorderRowSkip = 0;
34 int32 gbBorderColumnSkip = 0;
35 int32 gbDmaTicks = 0;
36 bool8 gbNullInputHackEnabled = false;
37 bool8 gbNullInputHackTempEnabled = false;
39 u8 (*gbSerialFunction)(u8) = NULL;