Pushud — Push User Stack (Decrementing) - Samsung S3F84B8 User Manual

8-bit cmos
Hide thumbs Also See for S3F84B8:
Table of Contents

Advertisement

S3F84B8_UM_REV 1.00
6.3.53 PUSHUD — PUSH USER STACK (DECREMENTING)
dst,src
PUSHUD
IR  IR – 1
Operation:
dst  src
This instruction is used to address user-defined stacks in the register file. PUSHUD decrements
the user stack pointer and loads the contents of source into register addressed by the
decremented stack pointer.
No flags are affected.
Flags:
Format:
opc
Given register 00H = 03H, register 01H = 05H, and register 02H = 1AH:
Example:
PUSHUD
If the user stack pointer (register 00H, for example) contains the value 03H, the statement
"PUSHUD @00H,01H" decrements the user stack pointer by one, leaving the value 02H. The 01H
register value, 05H, is then loaded into the register addressed by the decremented user stack
pointer.
dst
src
@00H,01H
Bytes
Cycles
3
Register 00H = 02H, register 01H = 05H,
register 02H = 05H
6-66
6 INSTRUCTION SET
Opcode
Addr Mode
(Hex)
dst
8
82
IR
src
R

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents