Intel 80287, 80286 manual TEST-Logical Compare, Test

Models: 80287 80286

1 515
Download 515 pages 45.04 Kb
Page 320
Image 320

THE 80286 INSTRUCTION SET

TEST-Logical Compare

Opcode

 

Instruction

Clocks

Description

84

/r

 

TEST

eb,rb

2,mem=6

AND byte register into EA byte for flags only

84

/r

 

TEST

rb,eb

2,mem=6

AND EA byte into byte.register for flags only

85

/r

 

TEST

eW,rw

2,mem=6

AND word register into EA word for flags only

85

/r

 

. TEST

rw,ew

2,mem=6

AND EA word into word register for flags only

A8

db

 

TEST

AL,db

3

AND immediate byte into AL for flags only

A9

dw

 

TEST

AX,dw

3

AND immediate word into AX for flags only

F6

/0

db

TEST

eb,db

3,mem=6

AND immediate byte into EA byte for flags only

F7

/0

dw

TEST

ew;dw

3,mem=6

AND immediate word into EA word for flags

 

 

 

 

 

 

.only

FLAGS MODIFIED

Overflow=O, sign, zero, parity, carry=O

FLAGS UNDEFINED

Auxiliary carry

OPERATION

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

Page 320
Image 320
Intel 80287, 80286 manual TEST-Logical Compare, Test