add method to set Registers and retrieve PC

This commit is contained in:
nick-less 2018-12-16 18:24:04 +01:00
parent 39b95437c4
commit 53b5c56465
2 changed files with 16 additions and 0 deletions

View File

@ -47,6 +47,9 @@ class Cpu65816 {
// Temporary
bool executeNextInstruction();
void setXL(uint8_t x);
void setYL(uint8_t y);
Address getProgramAddress();
private:
SystemBus &mSystemBus;

View File

@ -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.
* */