Mikroone - Online Help
POP R[x] - Pop from
Stack
POP SR
POP PC
Operating Mode
R[x] := ds[Stack]
Stack
:= Stack - 1
PC
:= PC + 1
Description
Saves content of
memory addressed by stack pointer to register[x] and decrements stack pointer
by 1.
With the Options
SR and PC you have the possibility to save the addressed Value to the Status
Register or the Program Counter.
Note
Changing the
value of the Program Counter can cause errors. So you should be aware of what
you do, when changing it.
Binary Command
15 14 13 12 11 |
10 9 8 7 6 5 4 3 |
2 1 0 |
11000 |
---------- |
Adr(x) |
Example
POP R[3]
15 14 13 12 11 |
10 9 8 7 6 5 4 3 |
2 1 0 |
11000 |
---------- |
011 |