1 #ifndef __MDFN_PCE_DEBUG_H
2 #define __MDFN_PCE_DEBUG_H
3 
4 #ifdef WANT_DEBUGGER
5 
6 #include <mednafen/hw_sound/pce_psg/pce_psg.h>
7 
8 namespace MDFN_IEN_PCE
9 {
10 
11 void PCEDBG_MachineStateChanged(void);
12 
13 void PCEDBG_FlushBreakPoints(int type);
14 void PCEDBG_AddBreakPoint(int type, unsigned int A1, unsigned int A2, bool logical);
15 
16 uint32 PCEDBG_MemPeek(uint32 A, unsigned int bsize, bool hl, bool logical);
17 void PCEDBG_IRQ(int level);
18 uint32 PCEDBG_GetVector(int level);
19 void PCEDBG_Disassemble(uint32 &a, uint32 SpecialA, char *);
20 
21 void PCEDBG_CheckBP(int type, uint32 address, unsigned int len);
22 
23 void PCEDBG_GetAddressSpaceBytes(const char *name, uint32 Address, uint32 Length, uint8 *Buffer);
24 void PCEDBG_PutAddressSpaceBytes(const char *name, uint32 Address, uint32 Length, uint32 Granularity, bool hl, const uint8 *Buffer);
25 
26 
27 void PCEDBG_SetLogFunc(void (*func)(const char *, const char *));
28 
29 void PCEDBG_DoLog(const char *type, const char *format, ...);
30 char *PCEDBG_ShiftJIS_to_UTF8(const uint16 sjc);
31 
32 void PCEDBG_EnableUsageMap(bool);
33 
34 extern bool PCE_LoggingOn;
35 extern bool PCE_UsageMapOn;
36 
37 extern DebuggerInfoStruct PCEDBGInfo;
38 
39 void PCEDBG_Init(bool sgx, PCE_PSG *psg, const uint32 vram_size) MDFN_COLD;
40 void PCEDBG_Kill(void) MDFN_COLD;
41 
42 };
43 
44 #endif
45 
46 #endif
47