--- xmil/z80c/z80core.h 2004/08/20 23:01:16 1.6 +++ xmil/z80c/z80core.h 2008/06/02 20:07:32 1.8 @@ -1,11 +1,10 @@ -//---------------------------------------------------------------------------- -// -// Z80C : Z80 Engine - GENERIC -// -// Copyright by Studio Milmake 1999-2000,2004 -// -//---------------------------------------------------------------------------- - +/* ----------------------------------------------------------------------- + * + * Z80C : Z80 Engine - GENERIC + * + * Copyright by Studio Milmake 1999-2000,2004 + * + *------------------------------------------------------------------------ */ #ifndef CPUCALL #define CPUCALL @@ -94,7 +93,7 @@ typedef struct { } Z80STAT; typedef struct { - UINT8 *memread; +const UINT8 *memread; UINT8 *memwrite; } Z80EXT; @@ -162,6 +161,7 @@ void CPUCALL z80c_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)