SASM : IMUL

IMUL:

Syntax:

  • IMUL[.BS] <R3>   <R0> <R1>

Description:

   Multiplies the contents of R0 and R1, and moves them to R3. Instruction is performed according to [.BS] (bank select).Information on Bank Select is here. Instruction is stack conditioned.

Exception:

    Not yet.

Example:

  
IMUL 0x20 0x22 0x21   ! Multiply content of 
                      ! 0x21 with content of 
                      ! 0x22 and move result 
                      ! to register 0x20

IMUL.H 0x20 0x22 0x21 ! Multiply contents of 
                      ! high banks of 0x21 and 
                      ! 0x22 and move the result 
                      ! in high bank of 0x20

IMUL.L 0x20 0x22 0x21 ! Multiply contents of 
                      ! low banks of 0x21 and
                      ! 0x22 and move the result 
                      ! in low bank of 0x20

IMUL.V 0x20 0x22 0x21 ! Equvivalent to first
		      ! example without bank
                      !  specifier
      

$Id: imul_sasm.html,v 1.1 2001/05/07 13:30:29 lukyanov Exp $