1 #include <cstdlib>
2 #include "../common/Types.h"
3 
4 u8 *gbMemoryMap[16];
5 
6 int gbRomSizeMask = 0;
7 int gbRomSize = 0;
8 int gbRamSizeMask = 0;
9 int gbRamSize = 0;
10 int gbTAMA5ramSize = 0;
11 
12 u8 *gbMemory = NULL;
13 u8 *gbVram = NULL;
14 u8 *gbRom = NULL;
15 u8 *gbRam = NULL;
16 u8 *gbWram = NULL;
17 u16 *gbLineBuffer = NULL;
18 u8 *gbTAMA5ram = NULL;
19 
20 u16 gbPalette[128];
21 u8 gbBgp[4]  = { 0, 1, 2, 3};
22 u8 gbObp0[4] = { 0, 1, 2, 3};
23 u8 gbObp1[4] = { 0, 1, 2, 3};
24 int gbWindowLine = -1;
25 
26 bool genericflashcardEnable = false;
27 int gbCgbMode = 0;
28 
29 u16 gbColorFilter[32768];
30 int gbColorOption = 0;
31 int gbPaletteOption = 0;
32 int gbEmulatorType = 0;
33 int gbBorderOn = 0;
34 int gbBorderAutomatic = 0;
35 int gbBorderLineSkip = 160;
36 int gbBorderRowSkip = 0;
37 int gbBorderColumnSkip = 0;
38 int gbDmaTicks = 0;
39 
40 u8 (*gbSerialFunction)(u8) = NULL;
41