Reading a three-operand instruction
PowerPC arithmetic is three-operand: add rD, rA, rB computes rD = rA + rB. With the first two arguments in r3 and r4, and the result expected in r3:
add r3, r3, r4
blr
The destination comes first, then the two sources. Keep that order in mind — it's an easy one to mix up at first. As in the identity lesson, the arguments arrive left-to-right: a in r3 and b in r4.
Your task
Write add2, returning the sum of two ints.