mirror of
https://github.com/rodamaral/lsnes.git
synced 2025-04-02 10:42:15 -04:00
24 lines
476 B
C++
Executable file
24 lines
476 B
C++
Executable file
class CPUDebugger : public CPU, public ChipDebugger {
|
|
public:
|
|
bool property(unsigned id, string &name, string &value);
|
|
|
|
function<bool ()> step_event;
|
|
|
|
enum Usage {
|
|
UsageRead = 0x80,
|
|
UsageWrite = 0x40,
|
|
UsageExec = 0x20,
|
|
UsageFlagM = 0x02,
|
|
UsageFlagX = 0x01,
|
|
};
|
|
uint8 *usage;
|
|
uint32 opcode_pc;
|
|
bool opcode_edge;
|
|
|
|
void op_step();
|
|
uint8 op_read(uint32 addr);
|
|
void op_write(uint32 addr, uint8 data);
|
|
|
|
CPUDebugger();
|
|
~CPUDebugger();
|
|
};
|