summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/cpu-gb.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/rockboy/cpu-gb.h')
-rw-r--r--apps/plugins/rockboy/cpu-gb.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/apps/plugins/rockboy/cpu-gb.h b/apps/plugins/rockboy/cpu-gb.h
index dfb8734823..bbd6c84e59 100644
--- a/apps/plugins/rockboy/cpu-gb.h
+++ b/apps/plugins/rockboy/cpu-gb.h
@@ -10,24 +10,24 @@
10 10
11union reg 11union reg
12{ 12{
13 byte b[2][2]; 13 byte b[2][2];
14 word w[2]; 14 word w[2];
15 un32 d; /* padding for alignment, carry */ 15 un32 d; /* padding for alignment, carry */
16}; 16};
17 17
18struct cpu 18struct cpu
19{ 19{
20#ifdef DYNAREC 20#ifdef DYNAREC
21 union reg a,b,c,d,e,hl,f,sp,pc; 21 union reg a,b,c,d,e,hl,f,sp,pc;
22#else 22#else
23 union reg pc, sp, bc, de, hl, af; 23 union reg pc, sp, bc, de, hl, af;
24#endif 24#endif
25 int ime, ima; 25 int ime, ima;
26 int speed; 26 int speed;
27 int halt; 27 int halt;
28 int div, tim; 28 int div, tim;
29 int lcdc; 29 int lcdc;
30 int snd; 30 int snd;
31}; 31};
32 32
33extern struct cpu cpu; 33extern struct cpu cpu;
@@ -54,6 +54,6 @@ void lcdc_advance(int cnt) ICODE_ATTR;
54void sound_advance(int cnt) ICODE_ATTR; 54void sound_advance(int cnt) ICODE_ATTR;
55void cpu_timers(int cnt) ICODE_ATTR; 55void cpu_timers(int cnt) ICODE_ATTR;
56int cpu_emulate(int cycles) ICODE_ATTR; 56int cpu_emulate(int cycles) ICODE_ATTR;
57inline int cpu_step(int max); 57inline int cpu_step(int max) ICODE_ATTR;
58 58
59#endif 59#endif