Perhaps it's a bit of leftover cruft that was never tidied up (wouldn't be surprised, given the inefficient use of code and inconsistencies I'd found along the way).
Here goes:
Code: Select all
LB_E12B JSR LB_FA63
LDA $B9
ASL
BCC LB_E15E
LDY $BD
CPY #$0B
BNE LB_E15E
LDX #$00
STX $0C69
AND #$06 ???
BEQ LB_E159 ???
LDX #$F0
STX $0C6B
LDX #$FF
STX $0C6C
CMP #$02 ???
BEQ LB_E159 ???
LDX #$00
STX $0C6B
STX $0C6D
STX $0C6F
LB_E159 JSR LB_F0F6
JMP LB_E12B
LB_E15E ASL
BCC ...
I can't see how any of these values, if shifted left, would meet either conditional, or am I missing something?