Purpose: | To maintain operating system resource counts | |||
Format: | opcode add.rx, sum.mx | |||
Operation: | {set interlock}; sum <- sum + add; {release Interlock}; |
|||
Condition Codes: |
N <- sum LSS 0; Z <- sum EQL 0; V <- {integer overflow}; C <- {Carry from the most significant bit}; |
|||
Exceptions: | Integer Overflow | |||
Opcodes: |
|
|||
Description: | The sum operand is replaced by the sum of the addend operand and the sum operand. The addend operand is unaffected. The operation is interlocked against similar operations on other processors in a multi-processor system. The destination must be aligned to a word boundary. If it is not, then a reserved operand fault is taken. | |||
Notes: | Integer overflow occurs if the input operands to the add have the same sign and the result has the opposite sign. On overflow, the sum operand is replaced by the low order bits of the true result. |