mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-09-27 11:55:20 +00:00
tiny_music: starting to optmize
This commit is contained in:
parent
7cde776cfa
commit
f38c1ea6f8
@ -279,6 +279,10 @@ setup_irq_smc6:
|
||||
|
||||
|
||||
init_registers:
|
||||
lda #0
|
||||
sta SONG_OFFSET
|
||||
sta SONG_COUNTDOWN
|
||||
|
||||
; set fine note A
|
||||
|
||||
ldx #$00
|
||||
|
@ -29,21 +29,12 @@ tiny_music:
|
||||
;===================
|
||||
; Player Setup
|
||||
|
||||
lda #0
|
||||
sta DONE_PLAYING
|
||||
lda #1
|
||||
sta LOOP
|
||||
|
||||
|
||||
lda #<song_track_a
|
||||
lda #<yankee_doodle_song
|
||||
sta SONG_L
|
||||
lda #>song_track_a
|
||||
lda #>yankee_doodle_song
|
||||
sta SONG_H
|
||||
|
||||
lda #0
|
||||
sta SONG_OFFSET
|
||||
sta SONG_COUNTDOWN
|
||||
|
||||
; assume mockingboard in slot#4
|
||||
|
||||
jsr mockingboard_init
|
||||
|
@ -5,7 +5,7 @@
|
||||
; CCOONNNN -- c=channel, o=octave, n=note
|
||||
; 11LLLLLL -- L=length 1/32=1, 1/16=2, 1/8=4, 1/4=8 1/2=16 1=32
|
||||
|
||||
song_track_a:
|
||||
yankee_doodle_song:
|
||||
.byte $17 ;00 01 0111 G3 1/4
|
||||
.byte $4B ;01 00 1011 B2 1
|
||||
.byte $87 ;10 00 0111 G2 1
|
||||
|
Loading…
Reference in New Issue
Block a user