From e7c369cf8044b3c07f395cadaad0457a973c470a Mon Sep 17 00:00:00 2001 From: Adrian Conlon <98398945+AdrianConlon@users.noreply.github.com> Date: Thu, 7 Mar 2024 08:32:05 +0000 Subject: [PATCH] Zero page simplification --- M6502/src/mos6502.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/M6502/src/mos6502.cpp b/M6502/src/mos6502.cpp index 204f854..ee36b8d 100644 --- a/M6502/src/mos6502.cpp +++ b/M6502/src/mos6502.cpp @@ -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); }