Mercurial > vba-clojure
diff src/gba/GBAGlobals.cpp @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/gba/GBAGlobals.cpp Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,123 @@ 1.4 +#include "GBAGlobals.h" 1.5 + 1.6 +reg_pair reg[45]; 1.7 +memoryMap map[256]; 1.8 +bool8 ioReadable[0x400]; 1.9 +bool8 N_FLAG = 0; 1.10 +bool8 C_FLAG = 0; 1.11 +bool8 Z_FLAG = 0; 1.12 +bool8 V_FLAG = 0; 1.13 +bool8 armState = true; 1.14 +bool8 armIrqEnable = true; 1.15 +u32 armNextPC = 0x00000000; 1.16 +int32 armMode = 0x1f; 1.17 +u32 stop = 0x08000568; 1.18 +int32 saveType = 0; 1.19 +bool8 useBios = false; 1.20 +bool8 skipBios = false; 1.21 +int32 frameSkip = 1; 1.22 +u32 extButtons = 0; 1.23 +bool8 capturePrevious = false; 1.24 +int32 captureNumber = 0; 1.25 +bool8 speedup = false; 1.26 +bool8 synchronize = true; 1.27 +bool8 cpuDisableSfx = false; 1.28 +bool8 cpuIsMultiBoot = false; 1.29 +bool8 parseDebug = true; 1.30 +int32 layerSettings = 0xff00; 1.31 +int32 layerEnable = 0xff00; 1.32 +bool8 speedHack = false; 1.33 +bool8 memLagEnabled = false; 1.34 +bool8 memLagTempEnabled = false; 1.35 +bool8 useOldFrameTiming = false; 1.36 +int32 cpuSaveType = 0; 1.37 +bool8 cpuEnhancedDetection = true; 1.38 +bool8 cheatsEnabled = true; 1.39 + 1.40 +u8 *bios = NULL; 1.41 +u8 *rom = NULL; 1.42 +u8 *internalRAM = NULL; 1.43 +u8 *workRAM = NULL; 1.44 +u8 *paletteRAM = NULL; 1.45 +u8 *vram = NULL; 1.46 +u8 *pix = NULL; 1.47 +u8 *oam = NULL; 1.48 +u8 *ioMem = NULL; 1.49 + 1.50 +u16 DISPCNT = 0x0080; 1.51 +u16 DISPSTAT = 0x0000; 1.52 +u16 VCOUNT = 0x0000; 1.53 +u16 BG0CNT = 0x0000; 1.54 +u16 BG1CNT = 0x0000; 1.55 +u16 BG2CNT = 0x0000; 1.56 +u16 BG3CNT = 0x0000; 1.57 +u16 BG0HOFS = 0x0000; 1.58 +u16 BG0VOFS = 0x0000; 1.59 +u16 BG1HOFS = 0x0000; 1.60 +u16 BG1VOFS = 0x0000; 1.61 +u16 BG2HOFS = 0x0000; 1.62 +u16 BG2VOFS = 0x0000; 1.63 +u16 BG3HOFS = 0x0000; 1.64 +u16 BG3VOFS = 0x0000; 1.65 +u16 BG2PA = 0x0100; 1.66 +u16 BG2PB = 0x0000; 1.67 +u16 BG2PC = 0x0000; 1.68 +u16 BG2PD = 0x0100; 1.69 +u16 BG2X_L = 0x0000; 1.70 +u16 BG2X_H = 0x0000; 1.71 +u16 BG2Y_L = 0x0000; 1.72 +u16 BG2Y_H = 0x0000; 1.73 +u16 BG3PA = 0x0100; 1.74 +u16 BG3PB = 0x0000; 1.75 +u16 BG3PC = 0x0000; 1.76 +u16 BG3PD = 0x0100; 1.77 +u16 BG3X_L = 0x0000; 1.78 +u16 BG3X_H = 0x0000; 1.79 +u16 BG3Y_L = 0x0000; 1.80 +u16 BG3Y_H = 0x0000; 1.81 +u16 WIN0H = 0x0000; 1.82 +u16 WIN1H = 0x0000; 1.83 +u16 WIN0V = 0x0000; 1.84 +u16 WIN1V = 0x0000; 1.85 +u16 WININ = 0x0000; 1.86 +u16 WINOUT = 0x0000; 1.87 +u16 MOSAIC = 0x0000; 1.88 +u16 BLDMOD = 0x0000; 1.89 +u16 COLEV = 0x0000; 1.90 +u16 COLY = 0x0000; 1.91 +u16 DM0SAD_L = 0x0000; 1.92 +u16 DM0SAD_H = 0x0000; 1.93 +u16 DM0DAD_L = 0x0000; 1.94 +u16 DM0DAD_H = 0x0000; 1.95 +u16 DM0CNT_L = 0x0000; 1.96 +u16 DM0CNT_H = 0x0000; 1.97 +u16 DM1SAD_L = 0x0000; 1.98 +u16 DM1SAD_H = 0x0000; 1.99 +u16 DM1DAD_L = 0x0000; 1.100 +u16 DM1DAD_H = 0x0000; 1.101 +u16 DM1CNT_L = 0x0000; 1.102 +u16 DM1CNT_H = 0x0000; 1.103 +u16 DM2SAD_L = 0x0000; 1.104 +u16 DM2SAD_H = 0x0000; 1.105 +u16 DM2DAD_L = 0x0000; 1.106 +u16 DM2DAD_H = 0x0000; 1.107 +u16 DM2CNT_L = 0x0000; 1.108 +u16 DM2CNT_H = 0x0000; 1.109 +u16 DM3SAD_L = 0x0000; 1.110 +u16 DM3SAD_H = 0x0000; 1.111 +u16 DM3DAD_L = 0x0000; 1.112 +u16 DM3DAD_H = 0x0000; 1.113 +u16 DM3CNT_L = 0x0000; 1.114 +u16 DM3CNT_H = 0x0000; 1.115 +u16 TM0D = 0x0000; 1.116 +u16 TM0CNT = 0x0000; 1.117 +u16 TM1D = 0x0000; 1.118 +u16 TM1CNT = 0x0000; 1.119 +u16 TM2D = 0x0000; 1.120 +u16 TM2CNT = 0x0000; 1.121 +u16 TM3D = 0x0000; 1.122 +u16 TM3CNT = 0x0000; 1.123 +u16 P1 = 0xFFFF; 1.124 +u16 IE = 0x0000; 1.125 +u16 IF = 0x0000; 1.126 +u16 IME = 0x0000;