summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.asm b/main.asm
index 8957b00..cab247b 100644
--- a/main.asm
+++ b/main.asm
@@ -53,7 +53,7 @@ FETCHB MACRO ; 14 cycles, 4 bytes
;; Macro to write a byte in \1 to main memory at \2 (regs only)
PUTB MACRO ; 14 cycles, 4 bytes
- move.b \1,(a6,\2)
+ move.b \1,0(a6,\2)
ENDM
;; Macro to read a word from main memory at register \1
@@ -61,13 +61,13 @@ PUTB MACRO ; 14 cycles, 4 bytes
FETCHW MACRO ; 32 cycles, 10 bytes
move.b 1(a6,\1.w),\2 ; 14/4
ror.w #8,\2 ; 4/2
- move.b (a6,\1.w),\2 ; 14/4
+ move.b 0(a6,\1.w),\2 ; 14/4
ENDM
;; Macro to write a word in \1 to main memory at \2 (regs only)
;; XXX ALIGNMENT
PUTW MACRO ; 14 cycles, 4 bytes
- move.b \1,(a6,\2)
+ move.b \1,0(a6,\2)
ENDM
;; == Immediate Memory Macros ==
@@ -379,7 +379,7 @@ emu_op_11:
emu_op_12:
;; LD (DE),A
;; No flags
- move.b (a0,d5.w),d3
+ move.b 0(a0,d5.w),d3
DONE
START