pt3: add a few more cycle counts

This commit is contained in:
Vince Weaver 2019-06-05 11:22:12 -04:00
parent f3fe83bfc4
commit 9f6e149b7c

View File

@ -1321,15 +1321,15 @@ decode_case_cX:
decode_case_c0: decode_case_c0:
; special case $C0 means shut down the note ; special case $C0 means shut down the note
sta note_a+NOTE_ENABLED,X ; enabled=0 sta note_a+NOTE_ENABLED,X ; enabled=0 ; 5
jsr reset_note ; 6+69 jsr reset_note ; 6+69
bne done_decode ; branch always bne done_decode ; branch always ; 3
decode_case_cx_not_c0: decode_case_cx_not_c0:
sta note_a+NOTE_VOLUME,X ; volume=current_val&0xf; sta note_a+NOTE_VOLUME,X ; volume=current_val&0xf; 5
bne done_decode ; branch always bne done_decode ; branch always ; 3
decode_case_dX: decode_case_dX:
;============================== ;==============================
@ -1367,31 +1367,31 @@ decode_case_d0:
;============================== ;==============================
decode_case_fX: decode_case_fX:
; disable envelope ; disable envelope
lda #0 lda #0 ; 2
sta note_a+NOTE_ENVELOPE_ENABLED,X sta note_a+NOTE_ENVELOPE_ENABLED,X ; 5
; Set ornament to low byte of command ; Set ornament to low byte of command
lda note_command_bottom lda note_command_bottom ; 4
jsr load_ornament ; ornament to load in A jsr load_ornament ; ornament to load in A ; 6+?
; Get next byte ; Get next byte
iny ; point to next byte iny ; point to next byte ; 2
lda (PATTERN_L),Y lda (PATTERN_L),Y ; 5
; Set sample to value/2 ; Set sample to value/2
lsr ; divide by two lsr ; divide by two ; 2
jsr load_sample ; sample to load in A jsr load_sample ; sample to load in A ; 6+?
; fallthrough ; fallthrough
done_decode: done_decode:
iny ; point to next byte iny ; point to next byte ; 2
lda decode_done lda decode_done ; 4
bne handle_effects bne handle_effects ; 3
; -1
jmp note_decode_loop jmp note_decode_loop ; 3
;================================= ;=================================