public
Description: A Nintendo Gameboy and Gameboy Color emulator for the Apple iPhone and iPod Touch.
Homepage: http://www.zodttd.com
Clone URL: git://github.com/zodttd/gameboy4iphone.git
Click here to lend your support to: gameboy4iphone and make a donation at www.pledgie.com !
gameboy4iphone / cpu.h
100644 37 lines (21 sloc) 0.31 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef __CPU_H__
#define __CPU_H__
 
 
 
#include "defs.h"
 
 
union reg
{
byte b[2][2];
word w[2];
un32 d; /* padding for alignment, carry */
};
 
struct cpu
{
union reg pc, sp, bc, de, hl, af;
int ime, ima;
int speed;
int halt;
int div, tim;
int lcdc;
int snd;
};
 
extern struct cpu cpu;
 
 
 
 
#endif