summaryrefslogtreecommitdiff
path: root/menu.s68
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-11-06 18:04:43 -0800
committerMichael Pavone <pavone@retrodev.com>2015-11-06 18:04:43 -0800
commit394e3e3458bfcc9ca35489ca885dbb80adb665b6 (patch)
tree315fae6d4bbbb2bb77cae2677759b081526a66db /menu.s68
parent5d484fc10b53f6e5542837519715747631f45795 (diff)
Fix detection of directories in menu ROM
Diffstat (limited to 'menu.s68')
-rw-r--r--menu.s686
1 files changed, 3 insertions, 3 deletions
diff --git a/menu.s68 b/menu.s68
index e882c46..d348ea1 100644
--- a/menu.s68
+++ b/menu.s68
@@ -253,14 +253,14 @@ start_pressed:
add.w d0, d0
add.w d0, d0
lea page_index.w, a2
- lea (-1, a2, d0.w), a2
- tst.b (a2)+
+ move.l (0, a2, d0.w), a2
+ tst.b (-1, a2)
bne enter_dir
;regular file
rte
enter_dir:
lea menu_port+4, a3
- move.l (a2), (a3)
+ move.l a2, (a3)
.wait_complete
tst.w (a3)
bne .wait_complete