pt3: move note vars to zero page

since we're being crazy
This commit is contained in:
Vince Weaver 2019-06-09 01:18:39 -04:00
parent dd978592b8
commit d328d28ffa
4 changed files with 13 additions and 1 deletions

View File

@ -27,6 +27,7 @@ Code Optimization
Qkumba#3+vmw 2816 ?? 1C.22 28s 171s 16.3%
Fixes,zero init 2776 ?? 1C.10 28s 171s 16.3%
Qkumba-SuperSMC 2739 ?? 1B.15 27s 171s 15.8%
MoveNoteToZP 2650 ?? 1A.23 26s 171s 15.2%
Times: Validated
BH.PT3: 10.0B 16 1:33 93 17.2%

View File

@ -1,2 +1,2 @@
10 PRINT "PT3 PLAYER V0.9"
10 PRINT "PT3 PLAYER V1.0"
100 PRINT CHR$ (4)"BRUN PT3_PLAYER"

View File

@ -22,6 +22,7 @@
; + 2828 bytes -- fix some correctness issues
; + 2776 bytes -- init vars with loop (slower, but more correct and smaller)
; + 2739 bytes -- qkumba's crazy SMC everywhere patch
; + 2430+120 = 2650 bytes -- move NOTE structs to page0
; TODO
; move some of these flags to be bits rather than bytes?
@ -87,9 +88,18 @@ NOTE_TONE_SLIDE_TO_STEP =39
NOTE_STRUCT_SIZE=40
note_a = $80
note_b = $80+(NOTE_STRUCT_SIZE*1)
note_c = $80+(NOTE_STRUCT_SIZE*2)
begin_vars=$80
end_vars=$80+(NOTE_STRUCT_SIZE*3)
.if 0
begin_vars:
note_a: ; reset?
.byte $0 ; NOTE_VOLUME ; 0 ; Y
.byte $0 ; NOTE_TONE_SLIDING_L ; 1 ; Y
.byte $0 ; NOTE_TONE_SLIDING_H ; 2 ; Y
@ -215,6 +225,7 @@ note_c:
.byte $0 ; NOTE_TONE_DELTA_H
.byte $0 ; NOTE_TONE_SLIDE_TO_STEP
end_vars:
.endif
load_ornament0_sample1:
lda #0 ; 2

Binary file not shown.