--- hatari/src/falcon/dsp.h 2019/04/01 07:14:54 1.1.1.2 +++ hatari/src/falcon/dsp.h 2019/04/09 08:47:22 1.1.1.3 @@ -23,15 +23,39 @@ #ifndef DSP_H #define DSP_H -#if DSP_EMULATION +#if ENABLE_DSP_EMU # include "dsp_core.h" #endif +extern bool bDspEnabled; + +/* Dsp commands */ extern void DSP_Init(void); extern void DSP_UnInit(void); - extern void DSP_Reset(void); +extern void DSP_Run(int nHostCycles); + +/* Save Dsp state to snapshot */ +extern void DSP_MemorySnapShot_Capture(bool bSave); + +/* Dsp Debugger commands */ +extern void DSP_SetDebugging(bool enabled); +extern Uint32 DSP_ReadMemory(Uint16 addr, char space, const char **mem_str); +extern void DSP_DisasmMemory(Uint16 dsp_memdump_addr, Uint16 dsp_memdump_upper, char space); +extern Uint32 DSP_DisasmAddress(Uint16 lowerAdr, Uint16 UpperAdr); +extern void DSP_DisasmRegisters(void); +extern int DSP_GetRegisterAddress(const char *arg, Uint32 **addr, Uint32 *mask); +extern void DSP_Disasm_SetRegister(char *arg, Uint32 value); +extern Uint16 DSP_GetPC(void); + +/* Dsp SSI commands */ +extern Uint32 DSP_SsiReadTxValue(void); +extern void DSP_SsiWriteRxValue(Uint32 value); +extern void DSP_SsiReceiveSerialClock(void); +extern void DSP_SsiReceive_SC2(Uint32 FrameCounter); + +/* Dsp Host interface commands */ extern void DSP_HandleReadAccess(void); extern void DSP_HandleWriteAccess(void);