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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

INSTRUCTION SET DESCRIPTIONS<br />

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

Name Description Operation<br />

PUSHA<br />

PUSHF<br />

NOTE:<br />

Push All:<br />

PUSHA<br />

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

registers onto the stack . The order in<br />

which the registers are saved is: AX,<br />

CX, DX, BX, SP, BP, SI, and DI. The<br />

SP value pushed is the SP value<br />

before the first register (AX) is pushed.<br />

Instruction Operands:<br />

none<br />

Push Flags:<br />

PUSHF<br />

Decrements SP by two and then<br />

transfers all flags to the word at the top<br />

of stack pointed to by SP.<br />

Instruction Operands:<br />

none<br />

temp ← (SP)<br />

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Flags<br />

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

OF –<br />

PF –<br />

SF –<br />

TF –<br />

ZF –<br />

C-35

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

Saved successfully!

Ooh no, something went wrong!