dos33fsprogs/xmas_2018/xmas2018.s

117 lines
2.0 KiB
ArmAsm
Raw Normal View History

2018-12-10 18:06:21 +00:00
; VMW Productions 2018 XMAS Demo
;
; by deater (Vince Weaver) <vince@deater.net>
.include "zp.inc"
.include "hardware.inc"
; external routines
2018-12-10 18:06:21 +00:00
;play_music=$1000
;mockingboard_init=$1100
;mockingboard_mute=$11a1
2018-12-10 18:06:21 +00:00
xmas2018_start: ; this should end up at $4000
;===================
; Check for Apple II and patch
;===================
lda $FBB3 ; IIe and newer is $06
cmp #6
beq apple_iie
2018-12-10 18:06:21 +00:00
; lda #$54 ; patch the check_email font code
; sta ce_patch+1
apple_iie:
;==================
; Init mockingboard
;==================
lda #0
sta MB_PATTERN
lda #$60
sta MB_FRAME
jsr mockingboard_init
;===================
; set graphics mode
;===================
jsr HOME
2018-12-10 18:06:21 +00:00
jsr wreath
2018-12-12 17:33:05 +00:00
jsr ball
2018-12-12 20:38:30 +00:00
jsr merry
;==================
; Game over
;==================
; we never get here
2018-12-10 18:06:21 +00:00
game_over_man:
jmp game_over_man
.align $100
2018-12-10 18:06:21 +00:00
.include "wreath.s"
2018-12-12 17:33:05 +00:00
.include "ball.s"
2018-12-12 20:38:30 +00:00
.include "merry.s"
.include "lz4_decode.s"
.include "gr_offsets.s"
.include "gr_hline.s"
2018-12-10 18:06:21 +00:00
.include "gr_fast_clear.s"
.include "vapor_lock.s"
.include "delay_a.s"
2018-12-10 18:06:21 +00:00
.include "wait_keypress.s"
.include "mockingboard.s"
; .include "random16.s"
; .include "hgr.s"
; .include "move_letters.s"
.include "gr_putsprite.s"
2018-12-10 18:06:21 +00:00
; .include "text_print.s"
; .include "screen_split.s"
;============================
; Include Sprites
;============================
2018-12-10 18:06:21 +00:00
;.align $100
; .include "tfv_sprites.inc"
; .include "mode7_sprites.inc"
;=================================
; Include Text for Sliding Letters
; *DONT CROSS PAGES*
;=================================
2018-12-10 18:06:21 +00:00
;.include "letters.s"
;============================
; Include Lores Graphics
; No Alignment Needed
;============================
;============================
; Include Hires Graphics
; No Alignment Needed
; FIXME: we can save 8 bytes per file by stripping checksums off end
;============================
2018-12-10 18:06:21 +00:00
wreath_hgr:
.incbin "wreath.img.lz4",11
wreath_hgr_end:
2018-12-12 17:33:05 +00:00
ball_hgr:
.incbin "ball.img.lz4",11
ball_hgr_end:
2018-12-12 20:38:30 +00:00
merry_hgr:
.incbin "merry.img.lz4",11
merry_hgr_end: