Back
MASM : INTEGER (VECTOR) : ILEADONE
ILEADONE:

Syntax:

Description:

Writes in Rd3 the number of the highest bit set to "1", within range [63:0], in the address contained in register Rs0 according to BS (bank select). If none of the bits are set, i.e. the address is zero, then content of Rd3 is set to 64. Instruction is stack conditioned.

Microcode Pattern:

Takes 5 cycles to execute.
    Example: ILEADONE A3 3 A0

	  
	MPC   BS3 C3 P3 P0
	------------------
	ILON   0  0  00 A0
	  -    0  0  00 00
	  -    0  0  00 00
	  -    0  0  00 00
	  -    0  0  00 00
	  -    3  0  A3 00

	  
Exceptions :

No exceptions.

Example :

ATR 0x20 0x8000000000000000  !! Put in register 0x20 the
                             !! maximum negative number
                             !! generated by AGU

ILEADONE 0x21 3 0x20         !! Calculate the number of the highest 
                             !! bit set to "1" in content of register 
                             !! 0x20 and put the result in register 
                             !! 0x21 (Result == 63)

APE Group Zeuthen. 2003
$Id: ileadone_masm.php,v 1.2 2004/08/04 09:43:10 noe Exp $
$Id: syntax.php,v 1.8 2004/08/04 09:25:34 noe Exp $