|
S3CB205 Datasheet, PDF (80/98 Pages) Samsung semiconductor – S3CB205/FB205 | |||
|
◁ |
.0
Format:
POP <op>
<op>: GPR, SPR
Operation:
Flags:
Example:
<op> â HS[sptr - 1], sptr â sptr - 1
POP copies the value on top of the stack to <op> and decrease sptr by 1.
Z: set if the value copied to <op> is zero. Reset if not.
N: set if the value copied to <op> is negative. Reset if not.
When <op> is SPR, no flags are affected, including Z and N.
POP
R0
// R0 â HS[sptr-1], sptr â sptr-1
POP
IDH
// IDH â HS[sptr-1], sptr â sptr-1
In the first instruction, value of HS[sptr-1] is loaded to R0 and the second instruction âPOP IDHâ load
value of HS[sptr-1] to register IDH. Refer to chapter 5 for more detailed explanation about POP
operations for hardware stack.
|
▷ |