Skip to content

Commit

Permalink
and even more optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
ADM228 committed Jan 10, 2024
1 parent f2325a4 commit 0be97eb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions source/sound/SNESFM.asm
Original file line number Diff line number Diff line change
Expand Up @@ -994,10 +994,10 @@ namespace ParseSongData
MOV A, !TEMP_VALUE
MOV CH1_NOTE+X, A
BBS4 CHTEMP_FLAGS, PitchUpdate
BBS5 CHTEMP_FLAGS, PitchUpdate
; Retrigger
MOV $F2, #$5C ; Key off the needed channel
MOV $F3, !CHANNEL_BITMASK ;__
BBS5 CHTEMP_FLAGS, PitchUpdate
CALL CallInstrumentParser
MOV A, CH1_NOTE+X
PitchUpdate:
Expand Down Expand Up @@ -1094,13 +1094,10 @@ namespace ParseSongData
CallInstrumentParser:

CLR1 CHTEMP_FLAGS
SET3 CHTEMP_FLAGS
OR CHTEMP_FLAGS, #%00101000
MOV CHTEMP_COUNTERS_HALT, Y
MOV CHTEMP_COUNTERS_DIRECTION, Y
CALL SPC_ParseInstrumentData_Start
SET5 CHTEMP_FLAGS

RET
JMP SPC_ParseInstrumentData_Load

SetVolumeL_or_R:
MOV A, (CHTEMP_SONG_POINTER_L)+Y ; Y assumed to be 0
Expand Down

0 comments on commit 0be97eb

Please sign in to comment.