Code:
$9EDC:C9 FE CMP #$FE A:FE X:23 Y:16
$9EDE:F0 2B BEQ $9F0B A:FE X:23 Y:16
$9F0B:BD 04 05 LDA $0504,X @ $0527 = #$BA A:FE X:23 Y:16
$9F0E:29 E0 AND #$E0 A:BA X:23 Y:16
$9F10:18 CLC A:A0 X:23 Y:16
$9F11:69 46 ADC #$46 A:A0 X:23 Y:16
$9F13:9D 04 05 STA $0504,X @ $0527 = #$BA A:E6 X:23 Y:16
$9F16:BD 28 05 LDA $0528,X @ $054B = #$26 A:E6 X:23 Y:16
$9F19:69 00 ADC #$00 A:26 X:23 Y:16
$9F1B:9D 28 05 STA $0528,X @ $054B = #$26 A:26 X:23 Y:16
$9F1E:60 RTS A:26 X:23 Y:16
$9EDE:F0 2B BEQ $9F0B A:FE X:23 Y:16
$9F0B:BD 04 05 LDA $0504,X @ $0527 = #$BA A:FE X:23 Y:16
$9F0E:29 E0 AND #$E0 A:BA X:23 Y:16
$9F10:18 CLC A:A0 X:23 Y:16
$9F11:69 46 ADC #$46 A:A0 X:23 Y:16
$9F13:9D 04 05 STA $0504,X @ $0527 = #$BA A:E6 X:23 Y:16
$9F16:BD 28 05 LDA $0528,X @ $054B = #$26 A:E6 X:23 Y:16
$9F19:69 00 ADC #$00 A:26 X:23 Y:16
$9F1B:9D 28 05 STA $0528,X @ $054B = #$26 A:26 X:23 Y:16
$9F1E:60 RTS A:26 X:23 Y:16
It's very odd as I can either get the second line to display properly or only the third.