diff src/gb/gbGlobals.cpp @ 17:75e5bb1e0aa1

going to now integrate the gb src tree since it has no dependencies
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 11:44:47 -0600
parents f9f4f1b99eed
children
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/gb/gbGlobals.cpp	Sat Mar 03 11:44:47 2012 -0600
     1.3 @@ -0,0 +1,39 @@
     1.4 +#include "../Port.h"
     1.5 +#include "GB.h"
     1.6 +
     1.7 +u8 *gbMemoryMap[16];
     1.8 +
     1.9 +int32 gbRomSizeMask = 0;
    1.10 +int32 gbRomSize     = 0;
    1.11 +int32 gbRamSizeMask = 0;
    1.12 +int32 gbRamSize     = 0;
    1.13 +
    1.14 +u8 * gbMemory     = NULL;
    1.15 +u8 * gbVram       = NULL;
    1.16 +u8 * gbRom        = NULL;
    1.17 +u8 * gbRam        = NULL;
    1.18 +u8 * gbWram       = NULL;
    1.19 +u16 *gbLineBuffer = NULL;
    1.20 +
    1.21 +u16   gbPalette[128];
    1.22 +u8    gbBgp[4] = { 0, 1, 2, 3};
    1.23 +u8    gbObp0[4] = { 0, 1, 2, 3};
    1.24 +u8    gbObp1[4] = { 0, 1, 2, 3};
    1.25 +int32 gbWindowLine = -1;
    1.26 +
    1.27 +int32 gbCgbMode = 0;
    1.28 +
    1.29 +u16   gbColorFilter[32768];
    1.30 +int32 gbColorOption      = 0;
    1.31 +int32 gbPaletteOption    = 0;
    1.32 +int32 gbEmulatorType     = 0;
    1.33 +int32 gbBorderOn         = 1;
    1.34 +int32 gbBorderAutomatic  = 0;
    1.35 +int32 gbBorderLineSkip   = 160;
    1.36 +int32 gbBorderRowSkip    = 0;
    1.37 +int32 gbBorderColumnSkip = 0;
    1.38 +int32 gbDmaTicks         = 0;
    1.39 +bool8 gbNullInputHackEnabled	 = false;
    1.40 +bool8 gbNullInputHackTempEnabled = false;
    1.41 +
    1.42 +u8 (*gbSerialFunction)(u8) = NULL;