From 44a1ea6542c812b173fb9685837c0b2fdc6a7c61 Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Wed, 29 Nov 2023 17:38:56 +1100 Subject: bug fix apple.c:9 + inconsequential refactoring --- src/cpu/addressing.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cpu/addressing.c') diff --git a/src/cpu/addressing.c b/src/cpu/addressing.c index df632cf..f21e7da 100644 --- a/src/cpu/addressing.c +++ b/src/cpu/addressing.c @@ -29,9 +29,9 @@ address fAddressGetAddress(Addressing mode, short x) { case eZeroPageIndexedY: return ((x + Y) & 0x00FF); case eIndexedIndirect: - return ((getMemory(x+X+1))<<8) + (getMemory(x+X)); + return ((GetMemory(x+X+1))<<8) + (GetMemory(x+X)); case eIndirectIndexed: - return ((getMemory(x+1))<<8) + (getMemory(x)) + Y; + return ((GetMemory(x+1))<<8) + (GetMemory(x)) + Y; } } @@ -57,7 +57,7 @@ byte fAddressGetValue(Addressing mode, short x, address addr) { case eAccumulator: return acc; default: - return getMemory(addr); + return GetMemory(addr); } } -- cgit v1.2.3