FixBCD: PHA AND #%11111111 CMP #$0A BNE .nofixdopull PLA CLC ADC #$06 JMP .nofixnopull .nofixdopull: PLA .nofixnopull: