Implemnting PEI

This commit is contained in:
Anonymus Raccoon
2020-05-13 18:10:56 +02:00
parent 876b78a5c9
commit fea20fee70
5 changed files with 28 additions and 1 deletions

View File

@@ -7,6 +7,7 @@
#include <utility>
#include <iostream>
#include "../Exceptions/InvalidAddress.hpp"
#include "../Exceptions/InvalidOpcode.hpp"
namespace ComSquare::CPU
{
@@ -265,6 +266,7 @@ namespace ComSquare::CPU
case AbsoluteIndirectIndexedByX:
return this->_getAbsoluteIndirectIndexedByXAddr();
}
throw InvalidOpcode("Unknown addressing mode for.");
}
unsigned CPU::_executeInstruction(uint8_t opcode)