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

4 lines
215 B
Plaintext

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.