Welcome, guest ( Login )

WikiHome » InstructionSetReference

InstructionSetReference

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?)


add

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
add rC, rA, rB         ; The original add operation
bltu rC, rA, label ; Branch if carry was generated

Overflow Detection (signed operands)

etc.


Operation:
rc <- rA + rB
Assembler Syntax:
add
Example:
add

 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:  

Attachments (0)

  File By Size Attached Ver.