Scanbyte - Intel i960 Jx Developer's Manual

Microprocessor
Table of Contents

Advertisement

INSTRUCTION SET REFERENCE
6.2.57

scanbyte

Mnemonic:
scanbyte
Format:
scanbyte
Description:
Performs byte-by-byte comparison of src1 and src2 and sets condition code
to 010
bytes are equal, condition code is set to 000
if((src1 & 0x000000FF) == (src2 & 0x000000FF)
Action:
|| (src1 & 0x0000FF00) == (src2 & 0x0000FF00)
|| (src1 & 0x00FF0000) == (src2 & 0x00FF0000)
|| (src1 & 0xFF000000) == (src2 & 0xFF000000))
else
AC.cc = 000
STANDARD
Faults:
Example:
# Assume r9 = 0x11AB1100
scanbyte 0x00AB0011, r9# AC.cc
Opcode:
scanbyte
See Also:
bswap
Sets the condition code in the arithmetic controls.
Side Effects:
6-96
Scan Byte Equal
src1,
src2
reg/lit
reg/lit
when any two corresponding bytes are equal. When no corresponding
2
AC.cc = 010
;
2
;
2
Refer to
5ACH
REG
.
2
section 6.1.6, "Faults" (pg.
010
2
6-5).

Advertisement

Table of Contents
loading

Table of Contents