mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-26 03:32:51 +00:00
Zero page simplification
This commit is contained in:
parent
b582412231
commit
e7c369cf80
@ -27,7 +27,7 @@ int EightBit::MOS6502::step() noexcept {
|
||||
ExecutingInstruction.fire(*this);
|
||||
if (LIKELY(powered())) {
|
||||
|
||||
tick(); // A cycle is used, whether or RDY is high or not
|
||||
tick(); // A cycle is used, whether RDY is high or not
|
||||
|
||||
if (UNLIKELY(lowered(SO())))
|
||||
handleSO();
|
||||
@ -432,12 +432,12 @@ EightBit::register16_t EightBit::MOS6502::Address_Indirect() noexcept {
|
||||
}
|
||||
|
||||
EightBit::register16_t EightBit::MOS6502::Address_ZeroPageX() noexcept {
|
||||
memoryRead(Address_ZeroPage());
|
||||
AM_ZeroPage();
|
||||
return register16_t(BUS().ADDRESS().low + X(), 0);
|
||||
}
|
||||
|
||||
EightBit::register16_t EightBit::MOS6502::Address_ZeroPageY() noexcept {
|
||||
memoryRead(Address_ZeroPage());
|
||||
AM_ZeroPage();
|
||||
return register16_t(BUS().ADDRESS().low + Y(), 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user