English
Language : 

S3C880A Datasheet, PDF (210/366 Pages) Samsung semiconductor – 8-BIT CMOS 8-BIT 8-BIT MICROCONTROLLERS
SAM8 INSTRUCTION SET
S3C880A/F880A
PUSHUI – Push User Stack (Incrementing)
PUSHUI
Operation:
Flags:
Format:
dst,src
IR ← IR + 1
dst ← src
This instruction is used for user-defined stacks in the register file. PUSHUI increments the user
stack pointer and then loads the contents of the source into the register location addressed by the
incremented user stack pointer.
No flags are affected.
opc
dst
src
Bytes
3
Cycles
10
Opcode
(Hex)
83
Addr Mode
dst src
IR
R
Example:
Given: Register 00H = 03H, register 01H = 05H, and register 04H = 2AH:
PUSHUI @00H,01H →
Register 00H = 04H, register 01H = 05H, register 04H = 05H
If the user stack pointer (register 00H, for example) contains the value 03H, the statement
"PUSHUI @00H,01H" increments the user stack pointer by one, leaving the value 04H. The 01H
register value, 05H, is then loaded into the location addressed by the incremented user stack
pointer.
6-68