SASM : IDIV

IDIV:

Syntax:

  • IDIV[.BS] <R2> <R3> <R0> <R1>

Description:

   Devides the contents of R0 by the contents of R1, puts the result to R2, and the remainder of division in R3. Instruction is performed according to [.BS] (bank select). Information on Bank Select is here. Instruction is stack conditioned.

Exception:

    Not yet.

Example:

  
IDIV 0x20 0x23 0x22 0x21 ! Divides the content of 0x22 
                         ! by the content of 0x21 then
                         ! moves the result to 0x20
                         ! and remainder to 0x23
      

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