Skip to content

Commit

Permalink
WOOOOOOOOPS
Browse files Browse the repository at this point in the history
  • Loading branch information
ADM228 committed Feb 5, 2024
1 parent d6ebf2d commit c51dade
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/sound/SNESFM.asm
Original file line number Diff line number Diff line change
Expand Up @@ -2994,14 +2994,14 @@ GeneratePitchTable:
MOV Y, #96

..Loop:
MOV A, PitchTableHi-1+X ;
MOV A, PitchTableHi-1+Y ;
CMP A, #$40 ; If the value isn't overflowing, exit
BMI GeneratePitchTable_End ;__

MOV A, #$3F ;
MOV PitchTableHi-1+X, A ; Cap the pitch value
MOV PitchTableHi-1+Y, A ; Cap the pitch value
MOV A, #$FF ;
MOV PitchTableLo-1+X, A ;__
MOV PitchTableLo-1+Y, A ;__

DBNZ Y, GeneratePitchTable_OverflowCorrection_Loop

Expand Down

0 comments on commit c51dade

Please sign in to comment.