4cade/src/ui.credits.a
2019-10-08 13:19:20 -04:00

43 lines
1.1 KiB
Plaintext

;license:MIT
;(c) 2018-9 by 4am
;
; credits page
;
; Public functions
; - Credits
; - Help
;
Credits
; clobbers all
jsr LoadFile ; load credits text into $8000
!word kRootDirectory
!word kCreditsFile
!word $8000
jsr ClearOffscreen
lda OffscreenPage
ror ; draw on offscreen page
+LDADDR $8000
jsr DrawPage ; draw credits
jsr ShowOtherPage ; show credits
jsr WaitForKeyFor30Seconds; wait
-- bit CLEARKBD ; don't care about key
jsr ShowOtherPage ; back to previous page
- clc ; if called from search mode, tell caller not to refresh
rts
Help
; clobbers all
jsr LoadHelpOffscreen
jsr ShowOtherPage
jsr WaitForKeyFor30Seconds
cmp #$88
beq BrowseMode
cmp #$83
beq -
jsr IsUpDownOrRightArrow
beq -
jsr IsSearchKey
beq -
bne --