summaryrefslogtreecommitdiff
path: root/main.asm
diff options
context:
space:
mode:
authorAstrid Smith2010-07-17 10:11:28 -0700
committerAstrid Smith2010-07-17 10:11:28 -0700
commit2faa021f8bca174284069fecdf1896660b32700d (patch)
tree63a7bd8ef0ffa026ef535a2ef5a026fae5b07e64 /main.asm
parent98fd9a3d2bd12a5b58c15122297108b83fd2924f (diff)
deref wasn't working properly because of insufficient shifting, fixed
Diffstat (limited to 'main.asm')
-rw-r--r--main.asm3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.asm b/main.asm
index fcabd48..4e13792 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