summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-08-15 17:03:03 +1000
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-08-15 17:03:03 +1000
commitdc2e476c52a24ca910d2c1e60347fd5bce889169 (patch)
treefdb37eb252d2dd7cbf3f6eb7c8ba8ff3768ddf1a /src/cpu
parentdb83125332af3622d5dfec5d73a93b7593898d5b (diff)
forgone build process & misc stuff
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/addressing.c2
-rw-r--r--src/cpu/core.h4
2 files changed, 5 insertions, 1 deletions
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