debug.h 868 B

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