Version 2, changed by kerry. 05/14/2007. Show version history
(This is a test. How difficult is it to format the insruction-set reference on the nioswiki?)
rc -< rA + rB
add rC, rA, rB
add r6, r7, r8
Calculates the sum of rA and rB. Stores the result in rC. Used for both signed and unsigned addition.
Following . . .
add rC, rA, rB ; The original add operation
cmpltu rD, rC, rA ; rD is written with the carry bit
add rC, rA, rB ; The original add operation
bltu rC, rA, label ; Branch if carry was generated
etc.
| Operation: | rC <- rA + rB |
| Assembler Syntax: | add rC, rA, rB |
| Example: | add r6, r7, r8 |
| Description: | Calculates the sum of rA and rB. Stores the result in rC. Used for both signed and unsigned addition. |
| Usage: |
Carry Detection (unsigned operands): Following . . . add rC, rA, rB ; The original add operation cmpltu rD, rC, rA ; rD is written with the carry bit |
| Instruction Type: | |
| Instruction Fields: |