summaryrefslogtreecommitdiff
path: root/main.asm
diff options
context:
space:
mode:
authorAstrid Smith2010-09-13 16:38:04 -0700
committerAstrid Smith2010-09-13 16:38:04 -0700
commitcff026c3a067ec09fc5775996a48d7ad73412230 (patch)
treefb5c3aea0523b82fc33a1399642f1c850bc1f813 /main.asm
parentf9b6214d97d987b569bb901decbf6cc39d157224 (diff)
Fixed endianness issue in deref :(
Diffstat (limited to 'main.asm')
-rw-r--r--main.asm1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.asm b/main.asm
index d302780..02bcb1d 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