1 #ifndef _X6502STRUCTH 2 3 typedef struct __X6502 4 { 5 int32 tcount; /* Temporary cycle counter */ 6 uint32 PC; 7 uint8 A,X,Y,S,P,mooPI; 8 uint8 jammed; 9 10 int32 count; 11 uint32 IRQlow; /* Simulated IRQ pin held low(or is it high?). 12 And other junk hooked on for speed reasons.*/ 13 uint8 DB; /* Data bus "cache" for reads from certain areas */ 14 15 int preexec; /* Pre-exec'ing for debug breakpoints. */ 16 int cpoint; 17 18 #ifdef WANT_DEBUGGER 19 void (*CPUHook)(uint32); 20 uint8 (*ReadHook)(struct __X6502 *, unsigned int); 21 void (*WriteHook)(struct __X6502 *, unsigned int, uint8); 22 #endif 23 } X6502; 24 #define _X6502STRUCTH 25 #endif 26