mirror of
https://github.com/FrancescoRigoni/Lib65816.git
synced 2024-12-21 19:29:17 +00:00
add method to set Registers and retrieve PC
This commit is contained in:
parent
39b95437c4
commit
53b5c56465
@ -47,6 +47,9 @@ class Cpu65816 {
|
||||
|
||||
// Temporary
|
||||
bool executeNextInstruction();
|
||||
void setXL(uint8_t x);
|
||||
void setYL(uint8_t y);
|
||||
Address getProgramAddress();
|
||||
|
||||
private:
|
||||
SystemBus &mSystemBus;
|
||||
|
@ -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.
|
||||
* */
|
||||
|
Loading…
Reference in New Issue
Block a user