Solving mistakes about the m flag

This commit is contained in:
Anonymus Raccoon
2020-02-28 00:37:17 +01:00
parent 4394c7625e
commit 6c3c832539
11 changed files with 84 additions and 50 deletions
+10 -2
View File
@@ -25,12 +25,20 @@ namespace ComSquare::Debugger
SNES &_snes;
//! @brief Reimplement the basic instruction execution method to log instructions inside the logger view.
unsigned _executeInstruction(uint8_t opcode) override;
//! @brief Get a printable string representing an instruction.
static std::string _getInstructionString(uint8_t opcode);
//! @brief Get a printable string representing an instruction at the program counter given as parameter.
std::string _getInstructionString(uint24_t pc);
//! @brief Get a printable string representing the flags.
std::string _getFlagsString();
//! @brief Update the register's panel (accumulator, stack pointer...)
void _updateRegistersPanel();
//! @brief Return a printable string corresponding to the value of an immediate addressing mode.
std::string _getImmediateValue(uint24_t pc);
//! @brief Return a printable string corresponding to the value of a direct addressing mode.
std::string _getDirectValue(uint24_t pc);
//! @brief Return a printable string corresponding to the value of an absolute addressing mode.
std::string _getAbsoluteValue(uint24_t pc);
public slots:
//! @brief Pause/Resume the CPU.
void pause();