some new cpu debug code

This commit is contained in:
notaz 2013-08-10 17:57:54 +03:00
parent f81107f590
commit 12da51c27a
12 changed files with 224 additions and 54 deletions

View file

@ -9,3 +9,23 @@ 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