summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.asm1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.asm b/main.asm
index 9d4dfbc..51f91a5 100644
--- a/main.asm
+++ b/main.asm
@@ -92,6 +92,7 @@ emu_teardown:
;; Take a virtual address in d1 and dereference it. Returns the
;; host address in a0. Destroys a0, d0.
deref:
+ rol.w #8,d1
move.w d1,d0
andi.w #$3FFF,d0
movea.w d0,a0