User's Manual

THE
80286
INSTRUCTION SET
TEST
-Logical
Compare
Opcode
84
/r
84
/r
85
/r
85
/r
A8
db
A9
dw
F6
/0 db
F7
/0
dw
Instruction
TEST eb,rb
TEST rb,eb
TEST eW,rw
. TEST rw,ew
TEST AL,db
TEST AX,dw
TEST eb,db
TEST ew;dw
FLAGS MODIFIED
Clocks
2,mem=6
2,mem=6
2,mem=6
2,mem=6
3
3
3,mem=6
3,mem=6
Overflow=O, sign, zero, parity, carry=O
FLAGS UNDEFINED
Auxiliary carry
OPERATION
Description
AND byte register into EA byte
for
flags only
AND EA byte into byte.register
for
flags only
AND word register into EA word
for
flags only
AND EA word into word register
for
flags only
AND immediate byte into AL
for
flags only
AND immediate word into
AX
for
flags only
AND immediate byte into EA byte for flags only
AND immediate word into EA word
for
flags
.only
TEST
computes the bit-wise logical
AND
of the two operands given. Each bit of the result
is
1 if both
of the corresponding bits of the operands are
1;
each bit
is
0 otherwise. The result of the operation
is
discarded; only the flags are modified.
PROTECTED MODE EXCEPTIONS
#GP(O) for an illegal memory operand effective address in the CS, DS, or ES segments; #SS(O) for an
illegal address in the
SS
segment.
REAL ADDRESS MODE EXCEPTIONS
!
Interrupt
13
for a word operand
at
offset OFFFFH.
8.-110