diff --git a/include/Cpu65816.hpp b/include/Cpu65816.hpp index a635240..3c912e5 100644 --- a/include/Cpu65816.hpp +++ b/include/Cpu65816.hpp @@ -49,6 +49,11 @@ class Cpu65816 { bool executeNextInstruction(); void setXL(uint8_t x); void setYL(uint8_t y); + void setX(uint16_t x); + void setY(uint16_t y); + void setA(uint16_t a); + uint16_t getA(); + Address getProgramAddress(); private: diff --git a/src/Cpu65816.cpp b/src/Cpu65816.cpp index b7c0334..8dea231 100644 --- a/src/Cpu65816.cpp +++ b/src/Cpu65816.cpp @@ -36,12 +36,25 @@ Cpu65816::Cpu65816(SystemBus &systemBus, EmulationModeInterrupts *emulationInter void Cpu65816::setXL(uint8_t x) { - mX = x; + mX = x; } void Cpu65816::setYL(uint8_t y) { - mY = y; - + mY = y; } + +void Cpu65816::setX(uint16_t x) { + mX = x; +} +void Cpu65816::setY(uint16_t y) { + mY = y; +} +void Cpu65816::setA(uint16_t a) { + mA = a; +} +uint16_t Cpu65816::getA() { + return mA; +} + Address Cpu65816::getProgramAddress() { return mProgramAddress; }