From 98a8f201b56035da4c7faa88427968c1e7236f06 Mon Sep 17 00:00:00 2001 From: Duncan Smith Date: Mon, 13 Sep 2010 16:38:04 -0700 Subject: Fixed endianness issue in deref :( --- main.asm | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3