| 1 | |
| 2 | char *PDebugMain(void); |
| 3 | char *PDebug32x(void); |
| 4 | char *PDebugSpriteList(void); |
| 5 | void PDebugShowSpriteStats(unsigned short *screen, int stride); |
| 6 | void PDebugShowPalette(unsigned short *screen, int stride); |
| 7 | void PDebugShowSprite(unsigned short *screen, int stride, int which); |
| 8 | void PDebugDumpMem(void); |
| 9 | void PDebugZ80Frame(void); |
| 10 | void PDebugCPUStep(void); |
| 11 | |
| 12 | #if defined(CPU_CMP_R) || defined(CPU_CMP_W) || defined(DRC_CMP) |
| 13 | enum ctl_byte { |
| 14 | CTL_68K_SLAVE = 0x02, |
| 15 | CTL_68K_PC = 0x04, |
| 16 | CTL_68K_SR = 0x05, |
| 17 | CTL_68K_CYCLES = 0x06, |
| 18 | CTL_68K_R = 0x10, // .. 0x20 |
| 19 | CTL_MASTERSLAVE = 0x80, |
| 20 | CTL_EA = 0x82, |
| 21 | CTL_EAVAL = 0x83, |
| 22 | CTL_M68KPC = 0x84, |
| 23 | CTL_CYCLES = 0x85, |
| 24 | CTL_SH2_R = 0x90, // .. 0xa8 |
| 25 | }; |
| 26 | |
| 27 | void tl_write(const void *ptr, size_t size); |
| 28 | void tl_write_uint(unsigned char ctl, unsigned int v); |
| 29 | int tl_read(void *ptr, size_t size); |
| 30 | int tl_read_uint(void *ptr); |
| 31 | #endif |