
7 DETAILS OF INSTRUCTIONS
S1C33 FAMILY C33 PE CORE MANUAL
EPSON
137
pop %rd
Function
Pop
Standard) rd
← W[sp], sp ← sp + 4
Extension 1) Unusable
Extension 2) Unusable
Code
15 12 11 8 7 4 3 0
0 0 0 0 0 0 0 0 0 1 0 1
r d
0x005_
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Flag
IE C V Z N
– – – – –
|
|
|
|
Mode
Register direct %rd = %r0 to %r15
CLK
One cycle
Description
The data of a general-purpose register that has been saved to the stack by a push instruction is
restored from the stack. The pop instruction restores word data from the stack with an address
indicated by the current SP to the rd register, and increments the SP by an amount equivalent to 1
word (4 bytes).
Stack operation when pop %rd is executed
SP
31 0
rd ← Data
SP
31 0
Data
Data
Example
pop %r3 ; r3 ← W[sp], sp ← sp + 4
Comentarios a estos manuales