mirror of
https://github.com/FrancescoRigoni/Lib65816.git
synced 2024-06-10 04:29:35 +00:00
added more getters/setters
This commit is contained in:
parent
53b5c56465
commit
f3a1c5a94f
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user