mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-20 09:33:20 +00:00
43 lines
1.1 KiB
Plaintext
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 --
|