Reworking the instruction history

This commit is contained in:
Anonymus Raccoon
2020-04-04 23:17:31 +02:00
parent 84f964111c
commit 218935b5bb
8 changed files with 252 additions and 118 deletions
+5
View File
@@ -258,6 +258,11 @@ namespace ComSquare::CPU
//! @return The number of CPU cycles that the instruction took.
virtual unsigned _executeInstruction(uint8_t opcode);
//! @brief Get the parameter address of an instruction from it's addressing mode.
//! @info The current program counter should point to the instruction's opcode + 1.
//! @return The address of the data to read on the instruction.
uint24_t _getValueAddr(Instruction &instruction);
//! @brief Break instruction - Causes a software break. The PC is loaded from a vector table.
int BRK(uint24_t, AddressingMode);
//! @brief Co-Processor Enable instruction - Causes a software break. The PC is loaded from a vector table.