don't always clear keyboard strobe or reset OffscreenPage when entering SearchMode

allows hitting a key during a screenshot to start a search
This commit is contained in:
4am 2019-10-02 18:46:03 -04:00
parent 339c0ed700
commit f1cbdd0aef
3 changed files with 5 additions and 6 deletions

View File

@ -114,7 +114,8 @@ MiniAttractMode
inc @MiniAttractIndex inc @MiniAttractIndex
lda KBD lda KBD
bpl @loop bpl @loop
@exit rts @exit bit CLEARKBD
rts
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
; RunAttractModule ; RunAttractModule

View File

@ -19,7 +19,7 @@
; ;
OffscreenPage OffscreenPage
!byte 1 ; 0 = currently showing HGR page 2 !byte 0 ; 0 = currently showing HGR page 2
; (so offscreen is page 1 @ $2000) ; (so offscreen is page 1 @ $2000)
; 1 = currently showing HGR page 1 ; 1 = currently showing HGR page 1
; (so offscreen is page 2 @ $4000) ; (so offscreen is page 2 @ $4000)

View File

@ -37,12 +37,10 @@ SearchMode
ldx #$FF ldx #$FF
txs txs
stx gGameToLaunch ; $FF = no game selected stx gGameToLaunch ; $FF = no game selected
inx
stx OffscreenPage ; $00 = currently showing HGR page 2
jsr Home ; clear screen (switches to text mode) jsr Home ; clear screen (switches to text mode)
jsr OnInputChanged ; draw UI on HGR page 1 jsr OnInputChanged ; draw UI offscreen
jsr HGRMode ; show HGR screen jsr HGRMode ; show HGR screen
bit CLEARKBD jsr ResyncPage
.SearchModeInputLoop .SearchModeInputLoop
jsr WaitForKeyFor30Seconds jsr WaitForKeyFor30Seconds