RosettaCodeData/Task/Integer-overflow/6502-Assembly/integer-overflow-3.6502

4 lines
190 B
Plaintext

LDX #$7F
INX ;although X went from $7F to $80, INX does not affect the overflow flag!
BVS ErrorHandler ;whether this branch is taken has NOTHING to do with the INX instruction.