RosettaCodeData/Task/Logical-operations/6502-Assembly/logical-operations-3.6502
2023-07-01 13:44:08 -04:00

15 lines
305 B
Text

LDA myValue
CMP #3
BNE .skip
;if we got to here, "myValue == 3" evaluated to true.
LDA myOtherValue
CMP #5
BNE .skip
;if we got to here, both "myValue == 3" and "myOtherValue" == 5 evaluated to true.
STA myResult ;any nonzero value is considered TRUE, so we've stored 5 into myResult.
.skip: