view src/gba/GBAGlobals.cpp @ 29:2fa26addb901

added version.h
author Robert McIntyre <rlm@mit.edu>
date Sun, 04 Mar 2012 21:09:22 -0600
parents f9f4f1b99eed
children
line wrap: on
line source
1 #include "GBAGlobals.h"
3 reg_pair reg[45];
4 memoryMap map[256];
5 bool8 ioReadable[0x400];
6 bool8 N_FLAG = 0;
7 bool8 C_FLAG = 0;
8 bool8 Z_FLAG = 0;
9 bool8 V_FLAG = 0;
10 bool8 armState = true;
11 bool8 armIrqEnable = true;
12 u32 armNextPC = 0x00000000;
13 int32 armMode = 0x1f;
14 u32 stop = 0x08000568;
15 int32 saveType = 0;
16 bool8 useBios = false;
17 bool8 skipBios = false;
18 int32 frameSkip = 1;
19 u32 extButtons = 0;
20 bool8 capturePrevious = false;
21 int32 captureNumber = 0;
22 bool8 speedup = false;
23 bool8 synchronize = true;
24 bool8 cpuDisableSfx = false;
25 bool8 cpuIsMultiBoot = false;
26 bool8 parseDebug = true;
27 int32 layerSettings = 0xff00;
28 int32 layerEnable = 0xff00;
29 bool8 speedHack = false;
30 bool8 memLagEnabled = false;
31 bool8 memLagTempEnabled = false;
32 bool8 useOldFrameTiming = false;
33 int32 cpuSaveType = 0;
34 bool8 cpuEnhancedDetection = true;
35 bool8 cheatsEnabled = true;
37 u8 *bios = NULL;
38 u8 *rom = NULL;
39 u8 *internalRAM = NULL;
40 u8 *workRAM = NULL;
41 u8 *paletteRAM = NULL;
42 u8 *vram = NULL;
43 u8 *pix = NULL;
44 u8 *oam = NULL;
45 u8 *ioMem = NULL;
47 u16 DISPCNT = 0x0080;
48 u16 DISPSTAT = 0x0000;
49 u16 VCOUNT = 0x0000;
50 u16 BG0CNT = 0x0000;
51 u16 BG1CNT = 0x0000;
52 u16 BG2CNT = 0x0000;
53 u16 BG3CNT = 0x0000;
54 u16 BG0HOFS = 0x0000;
55 u16 BG0VOFS = 0x0000;
56 u16 BG1HOFS = 0x0000;
57 u16 BG1VOFS = 0x0000;
58 u16 BG2HOFS = 0x0000;
59 u16 BG2VOFS = 0x0000;
60 u16 BG3HOFS = 0x0000;
61 u16 BG3VOFS = 0x0000;
62 u16 BG2PA = 0x0100;
63 u16 BG2PB = 0x0000;
64 u16 BG2PC = 0x0000;
65 u16 BG2PD = 0x0100;
66 u16 BG2X_L = 0x0000;
67 u16 BG2X_H = 0x0000;
68 u16 BG2Y_L = 0x0000;
69 u16 BG2Y_H = 0x0000;
70 u16 BG3PA = 0x0100;
71 u16 BG3PB = 0x0000;
72 u16 BG3PC = 0x0000;
73 u16 BG3PD = 0x0100;
74 u16 BG3X_L = 0x0000;
75 u16 BG3X_H = 0x0000;
76 u16 BG3Y_L = 0x0000;
77 u16 BG3Y_H = 0x0000;
78 u16 WIN0H = 0x0000;
79 u16 WIN1H = 0x0000;
80 u16 WIN0V = 0x0000;
81 u16 WIN1V = 0x0000;
82 u16 WININ = 0x0000;
83 u16 WINOUT = 0x0000;
84 u16 MOSAIC = 0x0000;
85 u16 BLDMOD = 0x0000;
86 u16 COLEV = 0x0000;
87 u16 COLY = 0x0000;
88 u16 DM0SAD_L = 0x0000;
89 u16 DM0SAD_H = 0x0000;
90 u16 DM0DAD_L = 0x0000;
91 u16 DM0DAD_H = 0x0000;
92 u16 DM0CNT_L = 0x0000;
93 u16 DM0CNT_H = 0x0000;
94 u16 DM1SAD_L = 0x0000;
95 u16 DM1SAD_H = 0x0000;
96 u16 DM1DAD_L = 0x0000;
97 u16 DM1DAD_H = 0x0000;
98 u16 DM1CNT_L = 0x0000;
99 u16 DM1CNT_H = 0x0000;
100 u16 DM2SAD_L = 0x0000;
101 u16 DM2SAD_H = 0x0000;
102 u16 DM2DAD_L = 0x0000;
103 u16 DM2DAD_H = 0x0000;
104 u16 DM2CNT_L = 0x0000;
105 u16 DM2CNT_H = 0x0000;
106 u16 DM3SAD_L = 0x0000;
107 u16 DM3SAD_H = 0x0000;
108 u16 DM3DAD_L = 0x0000;
109 u16 DM3DAD_H = 0x0000;
110 u16 DM3CNT_L = 0x0000;
111 u16 DM3CNT_H = 0x0000;
112 u16 TM0D = 0x0000;
113 u16 TM0CNT = 0x0000;
114 u16 TM1D = 0x0000;
115 u16 TM1CNT = 0x0000;
116 u16 TM2D = 0x0000;
117 u16 TM2CNT = 0x0000;
118 u16 TM3D = 0x0000;
119 u16 TM3CNT = 0x0000;
120 u16 P1 = 0xFFFF;
121 u16 IE = 0x0000;
122 u16 IF = 0x0000;
123 u16 IME = 0x0000;