mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-10-05 01:54:56 +00:00
megademo: start adding sound into each subscene
This commit is contained in:
parent
62f53ab152
commit
61af85ae50
@ -138,8 +138,9 @@ c64_done_screen:
|
|||||||
; -24 done_blinding
|
; -24 done_blinding
|
||||||
; -7 check if past time
|
; -7 check if past time
|
||||||
; -46 cursor blink
|
; -46 cursor blink
|
||||||
|
; -1038 play music
|
||||||
;==================================
|
;==================================
|
||||||
; = 4379
|
; = 3341
|
||||||
|
|
||||||
|
|
||||||
; run the 2Hz counter, overflow at 30 60Hz frames
|
; run the 2Hz counter, overflow at 30 60Hz frames
|
||||||
@ -262,7 +263,6 @@ c64_wait_blinding:
|
|||||||
c64_done_blinding:
|
c64_done_blinding:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;=======================
|
;=======================
|
||||||
; see if done
|
; see if done
|
||||||
;=======================
|
;=======================
|
||||||
@ -323,16 +323,17 @@ cursor_off:
|
|||||||
;============
|
;============
|
||||||
; 38
|
; 38
|
||||||
|
|
||||||
|
|
||||||
cursor_done:
|
cursor_done:
|
||||||
|
|
||||||
; Try X=96 Y=9 cycles=4375 R4
|
jsr play_music ; 6+1032
|
||||||
|
|
||||||
|
; Try X=110 Y=6 cycles=3337 R4
|
||||||
|
|
||||||
nop
|
nop
|
||||||
nop
|
nop
|
||||||
|
|
||||||
ldy #9 ; 2
|
ldy #6 ; 2
|
||||||
loopcoE:ldx #96 ; 2
|
loopcoE:ldx #110 ; 2
|
||||||
loopcoF:dex ; 2
|
loopcoF:dex ; 2
|
||||||
bne loopcoF ; 2nt/3
|
bne loopcoF ; 2nt/3
|
||||||
dey ; 2
|
dey ; 2
|
||||||
|
@ -5,6 +5,11 @@
|
|||||||
.include "zp.inc"
|
.include "zp.inc"
|
||||||
.include "hardware.inc"
|
.include "hardware.inc"
|
||||||
|
|
||||||
|
; external routines
|
||||||
|
|
||||||
|
play_music=$1000
|
||||||
|
mockingboard_init=$1100
|
||||||
|
|
||||||
|
|
||||||
megademo_start: ; this should end up at $4000
|
megademo_start: ; this should end up at $4000
|
||||||
|
|
||||||
@ -22,6 +27,16 @@ megademo_start: ; this should end up at $4000
|
|||||||
|
|
||||||
apple_iie:
|
apple_iie:
|
||||||
|
|
||||||
|
;==================
|
||||||
|
; Init mockingboard
|
||||||
|
;==================
|
||||||
|
|
||||||
|
lda #0
|
||||||
|
sta MB_FRAME
|
||||||
|
sta MB_PATTERN
|
||||||
|
|
||||||
|
jsr mockingboard_init
|
||||||
|
|
||||||
;===================
|
;===================
|
||||||
; set graphics mode
|
; set graphics mode
|
||||||
;===================
|
;===================
|
||||||
@ -78,8 +93,8 @@ apple_iie:
|
|||||||
; Game over
|
; Game over
|
||||||
;==================
|
;==================
|
||||||
; we never get here
|
; we never get here
|
||||||
game_over_man:
|
;game_over_man:
|
||||||
jmp game_over_man
|
; jmp game_over_man
|
||||||
|
|
||||||
|
|
||||||
.include "lz4_decode.s"
|
.include "lz4_decode.s"
|
||||||
|
@ -112,6 +112,8 @@ MB_ADDRL = $91
|
|||||||
MB_ADDRH = $92
|
MB_ADDRH = $92
|
||||||
DONE_PLAYING = $93
|
DONE_PLAYING = $93
|
||||||
MB_CHUNK_OFFSET = $94
|
MB_CHUNK_OFFSET = $94
|
||||||
|
MB_FRAME = $94
|
||||||
|
MB_PATTERN = $95
|
||||||
CHUNKSIZE = $95
|
CHUNKSIZE = $95
|
||||||
LZ4_DONE = $96
|
LZ4_DONE = $96
|
||||||
DECODE_ERROR = $97
|
DECODE_ERROR = $97
|
||||||
|
Loading…
Reference in New Issue
Block a user