2019-10-12 14:47:38 +00:00
|
|
|
; Demosplash 2019
|
|
|
|
; by Vince "Deater" Weaver <vince@deater.net>
|
|
|
|
|
|
|
|
.include "zp.inc"
|
|
|
|
.include "hardware.inc"
|
|
|
|
|
|
|
|
demosplash2019:
|
|
|
|
|
|
|
|
;=========================
|
|
|
|
; set up sound
|
|
|
|
;=========================
|
|
|
|
lda #0
|
|
|
|
sta DONE_PLAYING
|
|
|
|
|
|
|
|
jsr mockingboard_init
|
|
|
|
jsr pt3_setup_interrupt
|
|
|
|
jsr reset_ay_both
|
|
|
|
jsr clear_ay_both
|
|
|
|
jsr pt3_init_song
|
|
|
|
|
|
|
|
; lda #1
|
|
|
|
; sta LOOP
|
|
|
|
|
|
|
|
|
|
|
|
;===========================
|
|
|
|
; Enable graphics
|
|
|
|
;===========================
|
|
|
|
|
|
|
|
bit LORES
|
|
|
|
bit SET_GR
|
|
|
|
bit FULLGR
|
|
|
|
bit KEYRESET
|
|
|
|
|
|
|
|
;===========================
|
|
|
|
; Setup pages (is this necessary?)
|
|
|
|
;===========================
|
|
|
|
|
|
|
|
lda #0
|
|
|
|
sta DRAW_PAGE
|
|
|
|
lda #1
|
|
|
|
sta DISP_PAGE
|
|
|
|
|
|
|
|
|
|
|
|
;===========================
|
|
|
|
; apple II intro
|
|
|
|
;============================
|
|
|
|
|
2019-10-15 04:27:27 +00:00
|
|
|
; jsr appleII_intro
|
|
|
|
|
|
|
|
;===========================
|
2019-11-03 01:05:11 +00:00
|
|
|
; show some pictures
|
|
|
|
;============================
|
2019-10-12 14:47:38 +00:00
|
|
|
|
2019-11-01 03:55:29 +00:00
|
|
|
|
2019-11-03 01:05:11 +00:00
|
|
|
; start music
|
2019-11-01 03:55:29 +00:00
|
|
|
|
2019-11-02 15:22:21 +00:00
|
|
|
; cli ; enable interrupts
|
2019-11-01 03:55:29 +00:00
|
|
|
|
2019-10-12 14:47:38 +00:00
|
|
|
;===========================
|
2019-11-03 01:05:11 +00:00
|
|
|
; missing scene
|
|
|
|
;===========================
|
2019-10-12 14:47:38 +00:00
|
|
|
|
2019-11-03 01:05:11 +00:00
|
|
|
; jsr missing_intro
|
2019-10-12 14:47:38 +00:00
|
|
|
|
|
|
|
;===========================
|
|
|
|
; starbase scene
|
|
|
|
;===========================
|
|
|
|
|
2019-11-02 15:22:21 +00:00
|
|
|
; jsr starbase
|
2019-10-12 14:47:38 +00:00
|
|
|
|
|
|
|
;===========================
|
|
|
|
; escape scene
|
|
|
|
;===========================
|
|
|
|
|
2019-11-03 01:05:11 +00:00
|
|
|
jsr escape
|
2019-10-12 14:47:38 +00:00
|
|
|
|
|
|
|
;===========================
|
|
|
|
; book scene
|
|
|
|
;===========================
|
|
|
|
|
2019-11-03 01:05:11 +00:00
|
|
|
; jsr book
|
2019-10-12 14:47:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
; wait wait wait
|
|
|
|
|
|
|
|
; jsr wait_until_keypressed
|
|
|
|
;repeat_ending:
|
|
|
|
; jmp repeat_ending
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;======================
|
|
|
|
; wait until keypressed
|
|
|
|
;======================
|
|
|
|
wait_until_keypressed:
|
|
|
|
lda KEYPRESS
|
|
|
|
bpl wait_until_keypressed
|
|
|
|
bit KEYRESET
|
|
|
|
rts
|
|
|
|
|
|
|
|
|
|
|
|
; Apple II intro
|
|
|
|
.include "appleII_intro.s"
|
|
|
|
.include "appleII_40_96.inc"
|
|
|
|
.include "vapor_lock.s"
|
|
|
|
.include "delay_a.s"
|
|
|
|
.include "gr_unrle.s"
|
2019-10-13 01:58:43 +00:00
|
|
|
.include "gr_offsets.s"
|
2019-11-03 01:05:11 +00:00
|
|
|
.include "gr_copy.s"
|
2019-10-12 14:47:38 +00:00
|
|
|
|
|
|
|
;.include "text_print.s"
|
2019-11-01 03:55:29 +00:00
|
|
|
.include "gr_pageflip.s"
|
2019-10-12 22:11:32 +00:00
|
|
|
.align $100
|
2019-10-12 14:47:38 +00:00
|
|
|
.include "gr_fast_clear.s"
|
|
|
|
;.include "gr_overlay.s"
|
|
|
|
|
|
|
|
; missing
|
2019-10-15 04:27:27 +00:00
|
|
|
.include "missing.s"
|
2019-10-12 14:47:38 +00:00
|
|
|
|
|
|
|
; Starbase
|
2019-11-01 03:55:29 +00:00
|
|
|
.include "starbase.s"
|
2019-10-12 14:47:38 +00:00
|
|
|
|
|
|
|
; escape
|
2019-11-03 01:05:11 +00:00
|
|
|
.include "escape.s"
|
2019-10-12 14:47:38 +00:00
|
|
|
|
|
|
|
; book
|
2019-11-02 15:22:21 +00:00
|
|
|
.include "book.s"
|
2019-10-12 14:47:38 +00:00
|
|
|
|
|
|
|
; Music player
|
|
|
|
.include "pt3_lib_core.s"
|
|
|
|
.include "pt3_lib_init.s"
|
|
|
|
.include "pt3_lib_mockingboard.s"
|
|
|
|
.include "interrupt_handler.s"
|
|
|
|
|
2019-11-03 01:05:11 +00:00
|
|
|
; Images (no need to align)
|
2019-11-02 19:47:58 +00:00
|
|
|
.include "credits_bg.inc"
|
|
|
|
|
|
|
|
|
2019-10-12 14:47:38 +00:00
|
|
|
PT3_LOC = song
|
|
|
|
|
|
|
|
; must be page aligned
|
|
|
|
.align 256
|
|
|
|
song:
|
2019-11-03 01:05:11 +00:00
|
|
|
.incbin "dya_space_demo.pt3"
|