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 />

POPA<br />

POPF<br />

PUSH<br />

NOTE:<br />

Pop All:<br />

POPA<br />

Pops all data, pointer, and index<br />

registers off of the stack. The SP value<br />

popped is discarded.<br />

Instruction Operands:<br />

none<br />

Pop Flags:<br />

POPF<br />

Transfers specific bits from the word at<br />

the current top of stack (pointed to by<br />

register SP) into the 8086/8088 flags,<br />

replacing whatever values the flags<br />

previously contained. SP is then<br />

incremented by two to point to the new<br />

top of stack.<br />

Instruction Operands:<br />

none<br />

Push:<br />

PUSH src<br />

Decrements SP by two and then<br />

transfers a word from the source<br />

operand to the top of stack now<br />

pointed to by SP.<br />

Instruction Operands:<br />

PUSH reg<br />

PUSH seg-reg (CS legal)<br />

PUSH mem<br />

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

((SP) + 1:(SP)) ← (src)<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 />

AF ü<br />

CF ü<br />

DF ü<br />

IF<br />

ü<br />

OF ü<br />

PF ü<br />

SF ü<br />

TF ü<br />

ZF ü<br />

AF –<br />

CF –<br />

DF –<br />

IF –<br />

OF –<br />

PF –<br />

SF –<br />

TF –<br />

ZF –<br />

C-34

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

Saved successfully!

Ooh no, something went wrong!