X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FPicoInt.h;h=1fd7422e0d9c29b52dfd8e62705624a91dc996ec;hb=7d4906bfc93ced40a544534f433f06b00add52b0;hp=6105f611527c1af6412c9f34606177949144e649;hpb=1dceadaee482ad3ca6f5ccbef57ea93893f45e82;p=picodrive.git diff --git a/Pico/PicoInt.h b/Pico/PicoInt.h index 6105f61..1fd7422 100644 --- a/Pico/PicoInt.h +++ b/Pico/PicoInt.h @@ -119,7 +119,10 @@ extern unsigned int SekCycleCntT; // total cycle counter, updated once per frame extern int SekCycleCntS68k; extern int SekCycleAimS68k; -#define SekCyclesResetS68k() {SekCycleCntS68k=SekCycleAimS68k=0;} +#define SekCyclesResetS68k() { \ + SekCycleCntS68k-=SekCycleAimS68k; \ + SekCycleAimS68k=0; \ +} #define SekCyclesDoneS68k() (SekCycleAimS68k-SekCyclesLeftS68k) // debug cyclone @@ -402,12 +405,12 @@ PICO_INTERNAL void z80_exit(void); #define EL_INTSW 0x0010 /* log irq switching on/off */ #define EL_ASVDP 0x0020 /* VDP accesses during active scan */ #define EL_VDPDMA 0x0040 /* VDP DMA transfers and their timing */ -#define EL_BUSREQ 0x0080 /* z80 busreq r/w */ +#define EL_BUSREQ 0x0080 /* z80 busreq r/w or reset w */ #define EL_Z80BNK 0x0100 /* z80 i/o through bank area */ #define EL_SRAMIO 0x0200 /* sram i/o */ #define EL_EEPROM 0x0400 /* eeprom debug */ #define EL_UIO 0x0800 /* unmapped i/o */ -#define EL_IO 0x1000 /* all i/o */ +#define EL_IO 0x1000 /* all i/o (TODO) */ #define EL_STATUS 0x4000 /* status messages */ #define EL_ANOMALY 0x8000 /* some unexpected conditions */