hud and menu housekeeping

This commit is contained in:
scawful
2022-10-01 02:22:20 -05:00
parent 2d60b9654e
commit 55ed3943fd
4 changed files with 174 additions and 264 deletions

View File

@@ -156,4 +156,30 @@ Menu_DeleteCursor:
STZ $0207
RTS
; -----------------------------------------------------------------------------
Menu_InitItemScreen:
{
SEP #$30
LDY.w $0202 : BNE .all_good
.loop
INY : CPY.b #$25 : BCS .bad
LDX.w Menu_AddressIndex-1, Y
LDA.l $7EF300, X
BEQ .loop
STY.w $0202
BRA .all_good
.bad
STZ.w $0202
.all_good
STZ $0207
LDA.b #$04
STA.w $0200
RTS
}
; -----------------------------------------------------------------------------