diff --git a/include/Cpu65816.hpp b/include/Cpu65816.hpp index a782555..a635240 100644 --- a/include/Cpu65816.hpp +++ b/include/Cpu65816.hpp @@ -47,6 +47,9 @@ class Cpu65816 { // Temporary bool executeNextInstruction(); + void setXL(uint8_t x); + void setYL(uint8_t y); + Address getProgramAddress(); private: SystemBus &mSystemBus; diff --git a/src/Cpu65816.cpp b/src/Cpu65816.cpp index 2b9d4a8..b7c0334 100644 --- a/src/Cpu65816.cpp +++ b/src/Cpu65816.cpp @@ -34,6 +34,19 @@ Cpu65816::Cpu65816(SystemBus &systemBus, EmulationModeInterrupts *emulationInter mStack(&mSystemBus) { } + +void Cpu65816::setXL(uint8_t x) { + mX = x; +} +void Cpu65816::setYL(uint8_t y) { + mY = y; + +} +Address Cpu65816::getProgramAddress() { + return mProgramAddress; +} + + /** * Resets the cpu to its initial state. * */