Back
MASM : INTEGER : IADD
IADD:

Syntax:

Description:

Adds the contents of Rs1 and Rs2, and moves them to Rd according to BS (bank select).

Microcode Pattern:

Takes 5 cycles to execute.
    Example: IADD 0xA3 3 0xA0 0xA1

	  
	MPC   BS3 C3 P3 P1 P0
	---------------------
	IADD   0  0  00 A1 A0
	  -    0  0  00 00 00
	  -    0  0  00 00 00
	  -    0  0  00 00 00
	  -    3  0  A3 00 00
	  
Exceptions :

No exceptions.

Example :

IADD 0x20 0 0x22 0x21 ! Add content of register 0x21
                      ! to content of register 0x22 
                      ! and don't write the result 
                      ! to register file

IADD 0x20 1 0x22 0x21 ! Add contents of low banks of
                      ! registers 0x21 and 0x22 and
                      ! move the result in low bank
                      ! of register 0x20

IADD 0x20 2 0x22 0x21 ! Add contents of high banks of
                      ! registers 0x21 and 0x22 and 
                      ! move the result in high bank
                      ! of register 0x20

IADD 0x20 3 0x22 0x21 ! Add content of register 0x21
                      ! to content of register 0x22,
                      ! move result to register 0x20

APE Group Zeuthen. 2003
$Id: iadd_masm.php,v 1.2 2004/08/04 09:42:41 noe Exp $
$Id: syntax.php,v 1.8 2004/08/04 09:25:34 noe Exp $