summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
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