Go to the documentation of this file.
8 #include "ui/ui_apuView.h"
20 namespace Debugger::APU
88 {
"ASL", 1, {
A,
None}},
89 {
"DEC", 1, {
X,
None}},
105 {
"PUSH", 1, {
A,
None}},
120 {
"ROL", 1, {
A,
None}},
121 {
"INC", 1, {
X,
None}},
137 {
"PUSH", 1, {
X,
None}},
152 {
"LSR", 1, {
A,
None}},
169 {
"PUSH", 1, {
Y,
None}},
184 {
"ROR", 1, {
A,
None}},
216 {
"DEC", 1, {
A,
None}},
234 {
"POP", 1, {
A,
None}},
248 {
"INC", 1, {
A,
None}},
266 {
"POP", 1, {
X,
None}},
280 {
"DEC", 1, {
Y,
None}},
298 {
"POP", 1, {
Y,
None}},
312 {
"INC", 1, {
Y,
None}},
@ AbsoluteAddrByX
Definition: APUDebug.hpp:36
@ AbsoluteBit
Definition: APUDebug.hpp:34
const std::array< Instruction, 0x100 > _instructions
List of instructions and their information.
Definition: APUDebug.hpp:59
@ AbsoluteDirectAddrByY
Definition: APUDebug.hpp:40
@ IndexXAddr
Definition: APUDebug.hpp:32
@ AbsoluteAddrByY
Definition: APUDebug.hpp:37
bool _isStepping
If this is set to true, the APU will execute one instruction and pause itself.
Definition: APUDebug.hpp:332
int _appendInstruction(int row)
Add instruction to disassembly.
Definition: APUDebug.cpp:289
@ SP
Definition: APUDebug.hpp:29
QTimer _timer
Internal timer used for update intervals.
Definition: APUDebug.hpp:324
@ X
Definition: APUDebug.hpp:27
void focus()
Focus the debugger's window.
Definition: APUDebug.cpp:425
std::string _getOperand(Operand ope) const
Returns an operand in text format.
Definition: APUDebug.cpp:308
std::string name
Definition: APUDebug.hpp:49
void _updateLogger()
Updates the object that serves as the disassembly.
Definition: APUDebug.cpp:261
Definition: ClosableWindow.hpp:12
bool _isPaused
If this is set to true, the execution of the APU will be paused.
Definition: APUDebug.hpp:330
int size
Definition: APUDebug.hpp:50
@ None
Definition: APUDebug.hpp:25
Ui::APUView _ui
A widget that contain the whole UI.
Definition: APUDebug.hpp:327
@ IndexYAddr
Definition: APUDebug.hpp:33
@ PSW
Definition: APUDebug.hpp:30
const Instruction & _getInstruction() const
Retrieves the instruction from the SP location.
Definition: APUDebug.cpp:377
@ AbsoluteByXAddr
Definition: APUDebug.hpp:38
@ A
Definition: APUDebug.hpp:26
Container of all the components of the SNES.
Definition: SNES.hpp:32
@ DirectAddrByY
Definition: APUDebug.hpp:43
void pause()
Pause/Resume the APU.
Definition: APUDebug.cpp:416
@ AbsoluteAddr
Definition: APUDebug.hpp:35
Operand
List of all types of operands used by the instructions.
Definition: APUDebug.hpp:23
std::tuple< Operand, Operand > operands
Definition: APUDebug.hpp:51
APUDebug(ComSquare::APU::APU &apu, SNES &snes)
Convert a basic APU to a debugging APU.
Definition: APUDebug.cpp:13
APUDebug & operator=(const APUDebug &)=delete
@ DirectAddrByX
Definition: APUDebug.hpp:42
void step()
Step - Execute a single instruction.
Definition: APUDebug.cpp:410
ComSquare::APU::APU & _apu
The APU to debug.
Definition: APUDebug.hpp:335
void _updatePanel()
Update the debugger panel values.
Definition: APUDebug.cpp:42
@ AbsoluteDirectByXAddr
Definition: APUDebug.hpp:39
@ ImmediateData
Definition: APUDebug.hpp:31
Small structure to store some values on the instructions.
Definition: APUDebug.hpp:47
@ DirectAddr
Definition: APUDebug.hpp:41
@ Y
Definition: APUDebug.hpp:28
void update()
Update the debugger and the underlying APU.
Definition: APUDebug.cpp:384
Definition: APUDebug.hpp:54
~APUDebug() override
Definition: APUDebug.cpp:37
ClosableWindow * _window
The QT window for this debugger.
Definition: APUDebug.hpp:322