RosettaCodeData/Task/Integer-overflow/6502-Assembly/integer-overflow-4.6502
2023-07-01 13:44:08 -04:00

3 lines
215 B
Text

LDA #%01000000
ORA #%10000000 ;accumulator crossed from below $7F to above $80, but ORA doesn't affect the overflow flag.
BVS ErrorHandler ;whether this branch is taken has NOTHING to do with the ORA instruction.