News:

Don't forget to visit the main site! There's lots of helpful docs, patches, and more!

Main Menu

Speed Booster Palette Quirk

Started by Mentlegen, May 07, 2019, 11:56:59 PM

Previous topic - Next topic

Mentlegen

Was wondering why the PB speedbooster loops its 4 palette lines, even though the code from 91:DA7B to 91:DABF is identical to vanilla.
$91:DA7B A9 04 00    LDA #$0004
$91:DA7E 8D D0 0A    STA $0AD0  [$7E:0AD0]
$91:DA81 AE 74 0A    LDX $0A74  [$7E:0A74]
$91:DA84 BD A9 DA    LDA $DAA9,x[$91:DAAB]
$91:DA87 85 24       STA $24    [$7E:0024]
$91:DA89 AD CE 0A    LDA $0ACE  [$7E:0ACE]
$91:DA8C 18          CLC
$91:DA8D 65 24       ADC $24    [$7E:0024]
$91:DA8F AA          TAX
$91:DA90 BD 00 00    LDA $0000,x[$91:DAB7]
$91:DA93 AA          TAX
$91:DA94 20 5B DD    JSR $DD5B  [$91:DD5B]
$91:DA97 AD CE 0A    LDA $0ACE  [$7E:0ACE]
$91:DA9A 1A          INC A
$91:DA9B 1A          INC A
$91:DA9C C9 08 00    CMP #$0008
$91:DA9F 30 03       BMI $03    [$DAA4]
$91:DAA1 A9 06 00    LDA #$0006

$91:DAA4 8D CE 0A    STA $0ACE  [$7E:0ACE]

$91:DAA7 38          SEC
$91:DAA8 60          RTS

$91:DAA9             dw DAAF, DAB7, DABF

$91:DAAF             dw 9B20,9B40,9B60,9B80
$91:DAB7             dw 9D20,9D40,9D60,9D80
$91:DABF             dw 9F20,9F40,9F60,9F80

I understand this code here, just not how it would loop. I also know that the looping probably handled somewhere else

But where? and how