mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-02-23 20:29:15 +00:00
tiny_tracker: another 2 bytes
This commit is contained in:
parent
6896a3e6b7
commit
920934fde4
@ -6,7 +6,7 @@
|
|||||||
.include "zp.inc"
|
.include "zp.inc"
|
||||||
.include "hardware.inc"
|
.include "hardware.inc"
|
||||||
|
|
||||||
; aiming for under 256
|
; for a 256 entry we need to fit in 252 bytes
|
||||||
|
|
||||||
; 310 bytes -- initial
|
; 310 bytes -- initial
|
||||||
; 268 bytes -- strip out interrupts
|
; 268 bytes -- strip out interrupts
|
||||||
@ -16,6 +16,7 @@
|
|||||||
; 252 bytes -- bne vs jmp
|
; 252 bytes -- bne vs jmp
|
||||||
; 250 bytes -- song only has 16 notes so can never be negative
|
; 250 bytes -- song only has 16 notes so can never be negative
|
||||||
; 249 bytes -- make terminating value $80 instead of $FF
|
; 249 bytes -- make terminating value $80 instead of $FF
|
||||||
|
; 247 bytes -- combine note loop. makes song a bit faster
|
||||||
|
|
||||||
d2:
|
d2:
|
||||||
|
|
||||||
@ -37,7 +38,7 @@ game_loop:
|
|||||||
; start the music playing
|
; start the music playing
|
||||||
|
|
||||||
.include "play_frame.s"
|
.include "play_frame.s"
|
||||||
|
.include "ay3_write_regs.s"
|
||||||
|
|
||||||
; delay 20Hz, or 1/20s = 50ms
|
; delay 20Hz, or 1/20s = 50ms
|
||||||
|
|
||||||
|
@ -63,20 +63,6 @@ note_only:
|
|||||||
; assume less than 256 bytes
|
; assume less than 256 bytes
|
||||||
inc SONG_OFFSET
|
inc SONG_OFFSET
|
||||||
|
|
||||||
|
|
||||||
lda SONG_COUNTDOWN
|
|
||||||
beq set_notes_loop ; bra
|
|
||||||
|
|
||||||
.include "ay3_write_regs.s"
|
|
||||||
|
|
||||||
done_update_song:
|
done_update_song:
|
||||||
dec SONG_COUNTDOWN
|
dec SONG_COUNTDOWN
|
||||||
|
bmi set_notes_loop
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user