summaryrefslogtreecommitdiff
path: root/menu.s68
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2016-04-16 13:07:03 -0700
committerMichael Pavone <pavone@retrodev.com>2016-04-16 13:07:03 -0700
commit99c17f0239487d6606e0ef607096ed6dc961e1e4 (patch)
treed5145839d88060212e9ffecc58b1e0151f7728e3 /menu.s68
parentf76ba81c317fdca5f549bcb044d62861609fe6d1 (diff)
Get slot list displaying in "Save State" and "Load State" menu items
Diffstat (limited to 'menu.s68')
-rw-r--r--menu.s6831
1 files changed, 26 insertions, 5 deletions
diff --git a/menu.s68 b/menu.s68
index 602da07..18c1b3e 100644
--- a/menu.s68
+++ b/menu.s68
@@ -933,16 +933,37 @@ resume:
move.l #2, menu_port+12
bra show_pause_menu
+show_save_slots:
+ lea dir_buffer, a6
+ lea menu_port+16, a3
+ move.l a6, (a3)
+.waitdone:
+ tst.w (a3)
+ bne .waitdone
+ bsr clear_screen
+ moveq #0, d0
+
+ moveq #2, d7
+.slotloop
+ tst.b (a6)
+ beq .done
+ moveq #2, d1
+ move.w d7, d2
+ bsr print_string_fixed
+ addq #2, d7
+ bra .slotloop
+.done
+ rts
+
save_state:
- ;TODO: Implement me
- move.l #0, menu_port+16
+ bsr show_save_slots
.forever
bra .forever
load_state:
- ;TODO: Implement me
- move.l #0, menu_port+16
- bra save_state
+ bsr show_save_slots
+.forever
+ bra .forever
about_text:
dc.b "BlastEm v0.4.0", 0