03.01.2015 Views

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

INSTRUCTION SET DESCRIPTIONS<br />

Table C-4. Instruction Set (Continued)<br />

Name Description Operation<br />

Flags<br />

Affected<br />

OUTS<br />

POP<br />

NOTE:<br />

Out String:<br />

OUTS port, src_string<br />

Performs block output from memory to<br />

an I/O port. The port address is placed<br />

in the DX register. The memory<br />

address is placed in the SI register.<br />

This instruction uses the DS segment<br />

register, but this may be changed with<br />

a segment override instruction. After<br />

the data transfer takes place, the<br />

pointer register (SI) increments or<br />

decrements, depending on the value<br />

of the direction flag (DF). The pointer<br />

register changes by 1 for byte<br />

transfers or 2 for word transfers.<br />

Instruction Operands:<br />

OUTS port, src_string<br />

OUTS (repeat) port, src_string<br />

Pop:<br />

POP dest<br />

Transfers the word at the current top of<br />

stack (pointed to by SP) to the<br />

destination operand and then<br />

increments SP by two to point to the<br />

new top of stack.<br />

Instruction Operands:<br />

POP reg<br />

POP seg-reg (CS illegal)<br />

POP mem<br />

(dst) ← (src) AF –<br />

CF –<br />

DF –<br />

IF –<br />

OF –<br />

PF –<br />

SF –<br />

TF –<br />

ZF –<br />

(dest) ← ((SP) + 1:(SP))<br />

(SP) ← (SP) + 2<br />

The three symbols used in the Flags Affected column are defined as follows:<br />

– the contents of the flag remain unchanged after the instruction is executed<br />

the contents of the flag is undefined after the instruction is executed<br />

üthe flag is updated after the instruction is executed<br />

AF –<br />

CF –<br />

DF –<br />

IF –<br />

OF –<br />

PF –<br />

SF –<br />

TF –<br />

ZF –<br />

C-33

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!