me wrote:both the 24-bit code and the 16-bit code will have an issue with the "ADC $11AE" when Gauntlet is not equipped. namely, the result will end up 1 too high, because Carry is set going into the add, as a result of your Gauntlet test. the original game manages to avoid this without an explicit CLC because Carry will always be clear going into C2/2BBA. however, you're probably going to need a "CLC" before the "ADC $11AE". not an issue in the 24-bit version, which has a NOP ripe for the taking, and consumes extra space regardless. however, the 16-bit version has no NOP, and is on the precipice.
or to my optimized function that addresses it? i waited the obligatory one month before following up. ;P