summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Smith2010-07-17 10:11:28 -0700
committerDuncan Smith2010-07-17 10:11:28 -0700
commit8c5e90c63a02948e981d2428bbc9f8da8689e477 (patch)
treebdc8efed01c8077a43cad6b8bd9708ee20084740
parent9b019945e2ad47afa810859bc291030b4bc63360 (diff)
deref wasn't working properly because of insufficient shifting, fixed
-rw-r--r--main.asm3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.asm b/main.asm
index 7c564bf..c7b197c 100644
--- a/main.asm
+++ b/main.asm
@@ -92,10 +92,11 @@ deref:
movea.w d0,a0
move.w d1,d0
andi.w #$C000,d0 ; Can cut this out by pre-masking the table.
- rol.w #2,d0
+ rol.w #4,d0
adda.l deref_table(pc,d0.w),a0
rts
+ EVEN
deref_table:
mem_page_0: dc.l 0 ; bank 0
mem_page_1: dc.l 0 ; bank 1