--- xmil/z80c/z80core.h 2004/08/08 17:45:52 1.2 +++ xmil/z80c/z80core.h 2004/08/11 12:08:17 1.3 @@ -86,7 +86,11 @@ typedef struct { UINT8 r2; UINT8 iff; UINT8 padding[3]; - UINT32 icount; + UINT reqirq; + + SINT32 remainclock; + SINT32 baseclock; + UINT32 clock; } Z80STAT; typedef struct { @@ -116,42 +120,47 @@ void CPUCALL z80c_interrupt(REG8 irq); void CPUCALL z80c_interrupt2(REG8 irq); void CPUCALL z80c_nonmaskedinterrupt(void); void CPUCALL z80c_execute(void); +void CPUCALL z80c_step(void); #ifdef __cplusplus } #endif -#define Z80_A z80core.s.r.b.a -#define Z80_F z80core.s.r.b.f -#define Z80_B z80core.s.r.b.b -#define Z80_C z80core.s.r.b.c -#define Z80_D z80core.s.r.b.d -#define Z80_E z80core.s.r.b.e -#define Z80_H z80core.s.r.b.h -#define Z80_L z80core.s.r.b.l - -#define Z80_AF z80core.s.r.w.af -#define Z80_BC z80core.s.r.w.bc -#define Z80_DE z80core.s.r.w.de -#define Z80_HL z80core.s.r.w.hl -#define Z80_IX z80core.s.r.w.ix -#define Z80_IY z80core.s.r.w.iy - -#define Z80_PC z80core.s.pc -#define Z80_SP z80core.s.sp -#define Z80_AF2 z80core.s.af2 -#define Z80_BC2 z80core.s.bc2 -#define Z80_DE2 z80core.s.de2 -#define Z80_HL2 z80core.s.hl2 - -#define Z80_I z80core.s.i -#define Z80_IM z80core.s.im -#define Z80_R z80core.s.r1 -#define Z80_R2 z80core.s.r2 -#define Z80_IFF z80core.s.iff -#define Z80_ICOUNT z80core.s.icount - +#define Z80_A z80core.s.r.b.a +#define Z80_F z80core.s.r.b.f +#define Z80_B z80core.s.r.b.b +#define Z80_C z80core.s.r.b.c +#define Z80_D z80core.s.r.b.d +#define Z80_E z80core.s.r.b.e +#define Z80_H z80core.s.r.b.h +#define Z80_L z80core.s.r.b.l + +#define Z80_AF z80core.s.r.w.af +#define Z80_BC z80core.s.r.w.bc +#define Z80_DE z80core.s.r.w.de +#define Z80_HL z80core.s.r.w.hl +#define Z80_IX z80core.s.r.w.ix +#define Z80_IY z80core.s.r.w.iy + +#define Z80_PC z80core.s.pc +#define Z80_SP z80core.s.sp +#define Z80_AF2 z80core.s.af2 +#define Z80_BC2 z80core.s.bc2 +#define Z80_DE2 z80core.s.de2 +#define Z80_HL2 z80core.s.hl2 + +#define Z80_I z80core.s.i +#define Z80_IM z80core.s.im +#define Z80_R z80core.s.r1 +#define Z80_R2 z80core.s.r2 +#define Z80_IFF z80core.s.iff + +#define CPU_REQIRQ z80core.s.reqirq + +#define CPU_REMCLOCK z80core.s.remainclock +#define CPU_BASECLOCK z80core.s.baseclock +#define CPU_CLOCK z80core.s.clock #define Z80_INITIALIZE z80c_initialize #define Z80_DEINITIALIZE() @@ -161,4 +170,5 @@ void CPUCALL z80c_execute(void); #define Z80_INT2(a) z80c_interrupt2(a) #define Z80_NMI z80c_nonmaskedinterrupt #define Z80_EXECUTE z80c_execute +#define Z80_STEP z80c_step