summaryrefslogtreecommitdiff
path: root/main.asm
diff options
context:
space:
mode:
authorDuncan Smith2010-09-13 16:38:04 -0700
committerDuncan Smith2010-09-13 16:38:04 -0700
commit98a8f201b56035da4c7faa88427968c1e7236f06 (patch)
treed05f27b75ec8297a09cff5e3042176a35572878c /main.asm
parentf313ab814fe1221f8ad72ccab9e7615a5ed0d4dc (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 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