Purpose: | To perform arithmetic addition | ||||||||||||||||||||||||||||||
Format: | opcode add.rx, sum.mx opcode add1.rx, add2.rx, sum.wx |
||||||||||||||||||||||||||||||
Operation: | sum <- sum + add; sum <- add1 + add2; |
||||||||||||||||||||||||||||||
Condition Codes: |
N <- sum LSS 0; Z <- sum EQL 0; V <- overflow; C <- {carry from the most significant bit} (Integer); C <- 0 (Floating); |
||||||||||||||||||||||||||||||
Exceptions: | Integer Overflow; Floating Overflow; Floating Underflow; Reserved Operand (Float) |
||||||||||||||||||||||||||||||
Opcodes: |
|
||||||||||||||||||||||||||||||
Description: | In the 2 operand format, the addend operand is added to the sum operand and the sum operand is replaced with the result. The addend operand is unaffected.
In the 3 Operand format, the addend 1 and addend 2 operands are added together and the sum operand is replaced with the result.The addend operands are unaffected. In floating point format, the result is rounded. |
||||||||||||||||||||||||||||||
Notes: |
|