This commit is contained in:
twinaphex
2014-03-30 22:15:17 +02:00
commit 7e6caac57d
370 changed files with 90364 additions and 0 deletions

25
src/x6502struct.h Normal file
View File

@@ -0,0 +1,25 @@
#ifndef _X6502STRUCTH
typedef struct __X6502 {
int32 tcount; /* Temporary cycle counter */
uint16 PC; /* I'll change this to uint32 later... */
/* I'll need to AND PC after increments to 0xFFFF */
/* when I do, though. Perhaps an IPC() macro? */
uint8 A, X, Y, S, P, mooPI;
uint8 jammed;
int32 count;
uint32 IRQlow; /* Simulated IRQ pin held low(or is it high?).
And other junk hooked on for speed reasons.*/
uint8 DB; /* Data bus "cache" for reads from certain areas */
int preexec; /* Pre-exec'ing for debug breakpoints. */
#ifdef FCEUDEF_DEBUGGER
void (*CPUHook)(struct __X6502 *);
uint8 (*ReadHook)(struct __X6502 *, uint32);
void (*WriteHook)(struct __X6502 *, uint32, uint8);
#endif
} X6502;
#define _X6502STRUCTH
#endif