Intel 80C186XL Instruction Set Descriptions, Table C-4.Instruction Set Continued, C-32, Name

Models: 80C186XL 80C188XL

1 405
Download 405 pages 42.62 Kb
Page 355
Image 355
Logical OR:

INSTRUCTION SET DESCRIPTIONS

Table C-4. Instruction Set (Continued)

Name

Description

Operation

Flags

Affected

 

 

 

 

 

 

 

OR

Logical OR:

(dest) (dest) or (src)

AF ?

 

OR dest,src

(CF) 0

CF

 

(OF) 0

DF –

 

Performs the logical "inclusive or" of

 

 

IF –

 

the two operands (bytes or words) and

 

 

 

OF

 

returns the result to the destination

 

 

 

PF

 

operand. A bit in the result is set if

 

 

 

SF

 

either or both corresponding bits in the

 

 

 

TF –

 

original operands are set; otherwise

 

 

 

ZF ¸

 

the result bit is cleared.

 

 

 

Instruction Operands:

 

 

 

OR reg, reg

 

 

 

OR reg, mem

 

 

 

OR mem, reg

 

 

 

OR accum, immed

 

 

 

OR reg, immed

 

 

 

OR mem, immed

 

 

 

 

 

 

OUT

Output:

(dest) (src)

AF –

 

OUT port, accumulator

 

CF –

 

 

DF –

 

Transfers a byte or a word from the AL

 

 

 

IF –

 

register or the AX register, respec-

 

 

 

OF –

 

tively, to an output port. The port

 

 

 

PF –

 

number may be specified either with

 

 

 

SF –

 

an immediate byte constant, allowing

 

 

 

TF –

 

access to ports numbered 0 through

 

 

 

ZF –

 

255, or with a number previously

 

 

 

 

 

placed in register DX, allowing variable

 

 

 

access (by changing the value in DX)

 

 

 

to ports numbered from 0 through

 

 

 

65,535.

 

 

 

Instruction Operands:

 

 

 

OUT immed8, AL

 

 

 

OUT DX, AX

 

 

 

 

 

 

NOTE: The three symbols used in the Flags Affected column are defined as follows:

the contents of the flag remain unchanged after the instruction is executed ¸? the contents of the flag is undefined after the instruction is executed

the flag is updated after the instruction is executed

C-32

Page 355
Image 355
Intel 80C186XL Instruction Set Descriptions, Table C-4.Instruction Set Continued, C-32, Name, Operation, Flags, Affected