mirror of
https://github.com/dborth/fceugx.git
synced 2024-12-04 22:34:14 +01:00
28 lines
947 B
C
28 lines
947 B
C
#ifndef _X6502STRUCTH
|
|
#define _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 *, unsigned int);
|
|
void (*WriteHook)(struct __X6502 *, unsigned int, uint8);
|
|
#endif
|
|
|
|
} X6502;
|
|
|
|
#endif
|