S3C84E5/C84E9/P84E9

INSTRUCTION SET

 

 

POPUI — Pop User Stack (Incrementing)

POPUI dst,src

Operation: dst src

IR IR + 1

The POPUI instruction is used for user-defined stacks in the register file. The contents of the register file location addressed by the user stack pointer are loaded into the destination. The user stack pointer is then incremented.

Flags: No flags are affected.

Format:

opc

src

dst

 

 

 

Bytes

Cycles

Opcode

Addr Mode

 

 

(Hex)

dst

src

3

8

93

R

IR

Example: Given: Register 00H = 01H and register 01H = 70H:

POPUI

02H,@00H

Register 00H = 02H, register 01H = 70H, register 02H =

 

 

70H

 

If the general register 00H contains the value 01H and the register 01H the value 70H, the statement "POPUI 02H,@00H" loads the value 70H into the destination general register 02H. The user stack pointer (the register 00H) is then incremented by one, changing its value from 01H to 02H.

6-65

Page 192
Image 192
Samsung S3C84E5 Popui Pop User Stack Incrementing, Popui dst,src, Example Given Register 00H = 01H and register 01H = 70H