tiny_tracker: another 2 bytes

This commit is contained in:
Vince Weaver 2022-01-15 16:23:59 -05:00
parent 6896a3e6b7
commit 920934fde4
2 changed files with 4 additions and 17 deletions

View File

@ -6,7 +6,7 @@
.include "zp.inc"
.include "hardware.inc"
; aiming for under 256
; for a 256 entry we need to fit in 252 bytes
; 310 bytes -- initial
; 268 bytes -- strip out interrupts
@ -16,6 +16,7 @@
; 252 bytes -- bne vs jmp
; 250 bytes -- song only has 16 notes so can never be negative
; 249 bytes -- make terminating value $80 instead of $FF
; 247 bytes -- combine note loop. makes song a bit faster
d2:
@ -37,7 +38,7 @@ game_loop:
; start the music playing
.include "play_frame.s"
.include "ay3_write_regs.s"
; delay 20Hz, or 1/20s = 50ms

View File

@ -63,20 +63,6 @@ note_only:
; assume less than 256 bytes
inc SONG_OFFSET
lda SONG_COUNTDOWN
beq set_notes_loop ; bra
.include "ay3_write_regs.s"
done_update_song:
dec SONG_COUNTDOWN
bmi set_notes_loop