Intel Embedded Microcontroller Push dest Function, Push DPL Push DPH, Push #data Binary Mode

Models: Embedded Microcontroller 8XC251SP 8XC251SA 8XC251SQ 8XC251SB

1 458
Download 458 pages 25.38 Kb
Page 364
Image 364

8XC251SA, SB, SP, SQ USER’S MANUAL

PUSH <dest>

Function:

Push onto stack

Description: Increments the stack pointer by one. The contents of the specified variable are then copied into the on-chip RAM location addressed by the stack pointer.

Flags:

CY

AC

OV

N

Z

 

 

 

 

 

 

 

 

 

 

Example: On entering an interrupt routine, the stack pointer contains 09H and the data pointer contains 0123H. After executing the instruction sequence

PUSH DPL

PUSH DPH

the stack pointer contains 0BH and on-chip RAM locations 0AH and 0BH contain 01H and 23H, respectively.

Variations

PUSH dir8

Binary Mode Source Mode

Bytes:

 

2

2

States:

 

4

4

[Encoding]

 

 

 

1 1 0 0

 

0 0 0 0

 

 

 

 

Hex Code in: Binary Mode = [Encoding] Source Mode = [Encoding]

direct addr

Operation:

PUSH

 

 

(SP) (SP) + 1

 

 

((SP)) (dir8)

 

 

 

 

PUSH #data

 

 

 

Binary Mode

Source Mode

Bytes:

4

3

States:

4

3

[Encoding]

1 1 0 0

1 0 1 0

0 0 0 0

0 0 1 0

#data

Hex Code in: Binary Mode = [Encoding] Source Mode = [Encoding]

Operation: PUSH

(SP) (SP) + 1 ((SP)) #data

A-112

Page 364
Image 364
Intel Embedded Microcontroller, 8XC251SA Push dest Function, Push DPL Push DPH, Push #data Binary Mode, Operation Push