Spanbit - Intel i960 Jx Developer's Manual

Microprocessor
Table of Contents

Advertisement

6.2.61

spanbit

Mnemonic:
spanbit
Format:
spanbit
Description:
Searches src value for the most significant clear bit (0 bit). When a most
significant 0 bit is found, its bit number is stored in dst and condition code is
set to 010
code is set to 000
dst = 0xFFFFFFFF;
Action:
AC.cc = 000
for(i = 31; i > = 0; i--)
{
if((src1 & 2**i) == 0))
{
}
}
Faults:
STANDARD
Example:
spanbit r2, r9
Opcode:
spanbit
See Also:
scanbit
Sets the condition code in the arithmetic controls.
Side Effects:
Span Over Bit
src,
dst
reg/lit
reg
. When src value is all 1's, all 1's are stored in dst and condition
2
.
2
;
2
dst = i;
AC.cc = 010
;
2
break;
Refer to
# Assume r2 is not 0xffffffff
# r9
# significant clear bit in r2;
# AC.cc
640H
REG
INSTRUCTION SET REFERENCE
section 6.1.6, "Faults" (pg.
bit number of most-
010
2
6
6-5).
6-103

Advertisement

Table of Contents
loading

Table of Contents