From dc2e476c52a24ca910d2c1e60347fd5bce889169 Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Tue, 15 Aug 2023 17:03:03 +1000 Subject: forgone build process & misc stuff --- src/cpu/addressing.c | 2 +- src/cpu/core.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/cpu') diff --git a/src/cpu/addressing.c b/src/cpu/addressing.c index 97ebb00..3fd640a 100644 --- a/src/cpu/addressing.c +++ b/src/cpu/addressing.c @@ -169,7 +169,7 @@ AddData fAddress(Addressing mode, short x) { AddData ret; ret.add = fAddressGetAddress (mode, x); ret.value = fAddressGetValue (mode, x, ret.add); - ret.length = fAddressGetLength (mode, x); + ret.length = fAddressGetLength (mode); ret.cycles = fAddressGetCycles (mode, x, ret.add); return ret; } \ No newline at end of file diff --git a/src/cpu/core.h b/src/cpu/core.h index 71a420b..03d20d0 100644 --- a/src/cpu/core.h +++ b/src/cpu/core.h @@ -31,4 +31,8 @@ typedef struct AddData{ byte value; } AddData; +byte getMemory(address x); + +void setMemory(address x, byte y); + #endif \ No newline at end of file -- cgit v1.2.3