Bump version numbers for 3.13
[maemo-rb.git] / apps / plugins / rockboy / cpu-gb.h
blobd82185e47916cd65388983ec06f01f4c56689cd8
3 #ifndef __CPU_GB_H__
4 #define __CPU_GB_H__
8 #include "defs.h"
11 union reg
13 byte b[2][2];
14 word w[2];
15 un32 d; /* padding for alignment, carry */
18 struct cpu
20 #ifdef DYNAREC
21 union reg a,b,c,d,e,hl,f,sp,pc;
22 #else
23 union reg pc, sp, bc, de, hl, af;
24 #endif
25 int ime, ima;
26 unsigned int speed;
27 unsigned int halt;
28 unsigned int div;
29 int tim;
30 int lcdc;
31 int snd;
34 extern struct cpu cpu;
36 #ifdef DYNAREC
37 struct dynarec_block {
38 union reg address;
39 void *block;
40 int length;
41 struct dynarec_block *next;
44 #define HASH_SIGNIFICANT_LOWER_BITS 8
45 #define HASH_BITMASK ((1<<HASH_SIGNIFICANT_LOWER_BITS)-1)
47 extern struct dynarec_block *address_map[1<<HASH_SIGNIFICANT_LOWER_BITS];
48 extern int blockclen;
49 #endif
51 void cpu_reset(void);
52 void cpu_timers(int cnt) ICODE_ATTR;
53 int cpu_emulate(int cycles) ICODE_ATTR;
55 #endif