X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fdebug.h;h=fcfdc079427deb74c205d002156f9c42fb1be7b4;hb=40d22a8e7610b2fdde5cfe6178605262ef0d61d7;hp=be819ee4eda95c0155c0f28bbadf7a4e29e55006;hpb=7b3f44c6b677a60b63b092f825a2b6c58166b70c;p=picodrive.git diff --git a/pico/debug.h b/pico/debug.h index be819ee..fcfdc07 100644 --- a/pico/debug.h +++ b/pico/debug.h @@ -1,9 +1,31 @@ char *PDebugMain(void); +char *PDebug32x(void); char *PDebugSpriteList(void); void PDebugShowSpriteStats(unsigned short *screen, int stride); void PDebugShowPalette(unsigned short *screen, int stride); void PDebugShowSprite(unsigned short *screen, int stride, int which); void PDebugDumpMem(void); void PDebugZ80Frame(void); +void PDebugCPUStep(void); +#if defined(CPU_CMP_R) || defined(CPU_CMP_W) || defined(DRC_CMP) +enum ctl_byte { + CTL_68K_SLAVE = 0x02, + CTL_68K_PC = 0x04, + CTL_68K_SR = 0x05, + CTL_68K_CYCLES = 0x06, + CTL_68K_R = 0x10, // .. 0x20 + CTL_MASTERSLAVE = 0x80, + CTL_EA = 0x82, + CTL_EAVAL = 0x83, + CTL_M68KPC = 0x84, + CTL_CYCLES = 0x85, + CTL_SH2_R = 0x90, // .. 0xa8 +}; + +void tl_write(const void *ptr, size_t size); +void tl_write_uint(unsigned char ctl, unsigned int v); +int tl_read(void *ptr, size_t size); +int tl_read_uint(void *ptr); +#endif