diff options
Diffstat (limited to 'apps/plugins/rockboy/cpu-gb.h')
-rw-r--r-- | apps/plugins/rockboy/cpu-gb.h | 24 |
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 | ||
11 | union reg | 11 | union 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 | ||
18 | struct cpu | 18 | struct 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 | ||
33 | extern struct cpu cpu; | 33 | extern struct cpu cpu; |
@@ -54,6 +54,6 @@ void lcdc_advance(int cnt) ICODE_ATTR; | |||
54 | void sound_advance(int cnt) ICODE_ATTR; | 54 | void sound_advance(int cnt) ICODE_ATTR; |
55 | void cpu_timers(int cnt) ICODE_ATTR; | 55 | void cpu_timers(int cnt) ICODE_ATTR; |
56 | int cpu_emulate(int cycles) ICODE_ATTR; | 56 | int cpu_emulate(int cycles) ICODE_ATTR; |
57 | inline int cpu_step(int max); | 57 | inline int cpu_step(int max) ICODE_ATTR; |
58 | 58 | ||
59 | #endif | 59 | #endif |