Address 60 contains 12 and address 61 contains 5. What does address 62 contain after this program?
LDD 60
SUB 61
CMP #7
JPE SKIP
INC ACC
SKIP: STO 62
- LDD 60: ACC = 12 (the contents of address 60).
- SUB 61: ACC = 12 − 5 = 7.
- CMP #7: ACC equals 7, so the compare is True and JPE jumps to SKIP; INC ACC is not run.
- STO 62: the value 7 is copied to address 62.
Answer: Address 62 contains 7.