configure.ac: prevent -lao, -lXext to be linked to all binaries
[rofl0r-gnuboy.git] / cpu.h
blobffe86ef76c7be20ba0fed9a02d0c6a1aa093c62e
3 #ifndef __CPU_H__
4 #define __CPU_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 union reg pc, sp, bc, de, hl, af;
21 int ime, ima;
22 int speed;
23 int halt;
24 int div, tim;
25 int lcdc;
26 int snd;
29 extern struct cpu cpu;
31 void cpu_reset();
32 void div_advance(int cnt);
33 void timer_advance(int cnt);
34 void lcdc_advance(int cnt);
35 void sound_advance(int cnt);
36 void cpu_timers(int cnt);
37 int cpu_emulate(int cycles);
39 #endif