2019-07-10 17:37:59 +00:00
|
|
|
;license:MIT
|
|
|
|
;(c) 2018-9 by 4am
|
|
|
|
;
|
|
|
|
; credits page
|
|
|
|
;
|
|
|
|
; Public functions
|
|
|
|
; - Credits
|
2019-10-08 03:50:23 +00:00
|
|
|
; - Help
|
|
|
|
;
|
2019-07-10 17:37:59 +00:00
|
|
|
|
2019-10-14 02:22:47 +00:00
|
|
|
;------------------------------------------------------------------------------
|
|
|
|
; Credits
|
|
|
|
; display credits page and wait
|
|
|
|
;
|
|
|
|
; in: none
|
|
|
|
; out: C clear
|
|
|
|
; all other flags and registers clobbered
|
|
|
|
;------------------------------------------------------------------------------
|
2019-07-10 17:37:59 +00:00
|
|
|
Credits
|
2019-09-10 02:38:17 +00:00
|
|
|
jsr LoadFile ; load credits text into $8000
|
|
|
|
!word kRootDirectory
|
2019-09-21 22:04:38 +00:00
|
|
|
!word kCreditsFile
|
2019-09-10 02:38:17 +00:00
|
|
|
!word $8000
|
2019-07-10 17:37:59 +00:00
|
|
|
jsr ClearOffscreen
|
|
|
|
lda OffscreenPage
|
|
|
|
ror ; draw on offscreen page
|
|
|
|
+LDADDR $8000
|
2019-09-10 04:32:30 +00:00
|
|
|
jsr DrawPage ; draw credits
|
|
|
|
jsr ShowOtherPage ; show credits
|
|
|
|
jsr WaitForKeyFor30Seconds; wait
|
2019-10-08 03:53:52 +00:00
|
|
|
-- bit CLEARKBD ; don't care about key
|
2019-09-10 04:32:30 +00:00
|
|
|
jsr ShowOtherPage ; back to previous page
|
2019-10-08 03:53:52 +00:00
|
|
|
- clc ; if called from search mode, tell caller not to refresh
|
2019-07-10 17:37:59 +00:00
|
|
|
rts
|
2019-09-26 17:46:13 +00:00
|
|
|
|
2019-10-14 02:22:47 +00:00
|
|
|
;------------------------------------------------------------------------------
|
|
|
|
; Help
|
|
|
|
; display global help page and wait
|
|
|
|
;
|
|
|
|
; in: none
|
|
|
|
; out: if user presses an arrow key within 30 seconds, this exits via BrowseMode
|
|
|
|
; otherwise this returns to caller with
|
|
|
|
; C clear, all other flags and registers clobbered
|
|
|
|
;------------------------------------------------------------------------------
|
2019-09-26 17:46:13 +00:00
|
|
|
Help
|
|
|
|
jsr LoadHelpOffscreen
|
|
|
|
jsr ShowOtherPage
|
|
|
|
jsr WaitForKeyFor30Seconds
|
2019-10-08 03:53:52 +00:00
|
|
|
cmp #$88
|
2019-10-08 17:19:20 +00:00
|
|
|
beq BrowseMode
|
2019-09-26 17:46:13 +00:00
|
|
|
cmp #$83
|
2019-10-08 03:53:52 +00:00
|
|
|
beq -
|
2019-09-26 17:46:13 +00:00
|
|
|
jsr IsUpDownOrRightArrow
|
2019-10-08 03:53:52 +00:00
|
|
|
beq -
|
2019-09-26 17:46:13 +00:00
|
|
|
jsr IsSearchKey
|
2019-10-08 03:53:52 +00:00
|
|
|
bne --
|
2019-10-10 01:02:46 +00:00
|
|
|
rts
|