Page 11 - TOPIC 3 PART 2
P. 11
• Arithmetic instruction: ADD, SUB, MUL, DEC..
– ADD and SUB are used to add/subtract the
contents of:
• Two registers, a register and a memory
location.
• ADD.x source, destination
– ADD.x D0, D1
– Contents of D0 are added to contents of D1, and the
sum is stored in D1.
• SUB source, destination
– SUB.x DO, (A1)
– Subtract D0 from memory content ofA1, and the
subtracted content is stored in the memory of A1.