--- xmil/z80x/z80core.h 2004/08/20 23:01:16 1.6 +++ xmil/z80x/z80core.h 2005/02/04 06:42:14 1.7 @@ -90,7 +90,7 @@ typedef struct { } Z80STAT; typedef struct { - UINT8 *memread; +const UINT8 *memread; UINT8 *memwrite; } Z80EXT; @@ -158,6 +158,7 @@ void z80x_step(void); #define CPU_REMCLOCK z80core.s.remainclock #define CPU_BASECLOCK z80core.s.baseclock #define CPU_CLOCK z80core.s.clock +#define CPU_CLOCKCOUNT (CPU_CLOCK + CPU_BASECLOCK - CPU_REMCLOCK) #define Z80_DI ((z80core.s.iff & 3) != 0) #define Z80_EI ((z80core.s.iff & 3) == 0)