INSTRUCTION SET DESCRIPTIONS

Table C-4. Instruction Set (Continued)

Name

Description

Operation

Flags

Affected

 

 

 

 

 

 

 

PUSHA

Push All:

temp (SP)

AF –

 

PUSHA

(SP) (SP) – 2

CF –

 

((SP) + 1:(SP)) (AX)

DF –

 

Pushes all data, pointer, and index

 

(SP) (SP) – 2

IF –

 

registers onto the stack . The order in

 

((SP) + 1:(SP)) (CX)

OF –

 

which the registers are saved is: AX,

 

(SP) (SP) – 2

PF –

 

CX, DX, BX, SP, BP, SI, and DI. The

 

((SP) + 1:(SP)) (DX)

SF –

 

SP value pushed is the SP value

 

(SP) (SP) – 2

TF –

 

before the first register (AX) is pushed.

 

((SP) + 1:(SP)) (BX)

ZF –

 

Instruction Operands:

 

(SP) (SP) – 2

 

 

none

((SP) + 1:(SP)) (temp)

 

 

 

(SP) (SP) – 2

 

 

 

((SP) + 1:(SP)) (BP)

 

 

 

(SP) (SP) – 2

 

 

 

((SP) + 1:(SP)) (SI)

 

 

 

(SP) (SP) – 2

 

 

 

((SP) + 1:(SP)) (DI)

 

 

 

 

 

PUSHF

Push Flags:

(SP) (SP) – 2

AF –

 

PUSHF

((SP) + 1:(SP)) Flags

CF –

 

 

DF –

 

Decrements SP by two and then

 

 

 

IF –

 

transfers all flags to the word at the top

 

 

 

OF –

 

of stack pointed to by SP.

 

 

 

PF –

 

Instruction Operands:

 

 

 

SF –

 

none

 

TF –

 

 

 

ZF –

 

 

 

 

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

Page 358
Image 358
Intel 80C188XL, 80C186XL user manual Push All, Push Flags