mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-30 01:25:49 +00:00
e8e02ba685
- updated debugger classes to compile again with all recent changes. - improved debugger classes to allow them to work in multi-threaded emulator and be able to handle CPUs on different threads. - added debug classes for new Z80 and Musashi 68K CPU cores. - added logging of cycle counts and frames. - moved all Supermodel specific code & configuration to CSupermodelDebugger. - added all Model 3 CPUs (PPC, sound board 68K, DSB 68K/Z80 and drive board Z80) to CSupermodelDebugger. - added persisting of custom entry points in saved debug state to CCodeAnalyser. - fixed bug with listing I/O ports in CConsoleDebugger and added displaying of cycle counts and CPU speeds when listing CPUs.
43 lines
1 KiB
C++
43 lines
1 KiB
C++
#ifdef SUPERMODEL_DEBUGGER
|
|
#ifndef INCLUDED_68KDEBUG_H
|
|
#define INCLUDED_68KDEBUG_H
|
|
|
|
#include "Debugger/CPUDebug.h"
|
|
#include "Types.h"
|
|
|
|
namespace Debugger
|
|
{
|
|
/*
|
|
* Base class CCPUDebug implementation for Motorola 68000 CPUs.
|
|
*/
|
|
class C68KDebug : public CCPUDebug
|
|
{
|
|
private:
|
|
bool FormatAddrMode(UINT32 addr, UINT32 opcode, int &offset, UINT8 addrMode, char sizeC, char *dest);
|
|
|
|
protected:
|
|
virtual UINT32 GetSP() = 0;
|
|
|
|
public:
|
|
C68KDebug(const char *name);
|
|
|
|
// CCPUDebug methods
|
|
|
|
int Disassemble(UINT32 addr, char *mnemonic, char *operands);
|
|
|
|
EOpFlags GetOpFlags(UINT32 addr, UINT32 opcode);
|
|
|
|
bool GetJumpAddr(UINT32 addr, UINT32 opcode, UINT32 &jumpAddr);
|
|
|
|
bool GetJumpRetAddr(UINT32 addr, UINT32 opcode, UINT32 &retAddr);
|
|
|
|
bool GetReturnAddr(UINT32 addr, UINT32 opcode, UINT32 &retAddr);
|
|
|
|
bool GetHandlerAddr(CException *ex, UINT32 &handlerAddr);
|
|
|
|
bool GetHandlerAddr(CInterrupt *in, UINT32 &handlerAddr);
|
|
};
|
|
}
|
|
|
|
#endif // INCLUDED_68KDEBUG_H
|
|
#endif // SUPERMODEL_DEBUGGER
|