Mikroone - Online Help
PSH R[x] - Push
to Stack
PSH SP
PSH PC
PSH SR
Operating Mode
Stack
:= Stack + 1
ds[Stack] := R[x]
PC
:= PC + 1
Description
Increments stack
pointer by 1 and saves content of register[x] to stack.
With the options
PC,SP and SR you can save the Values of the Program
Counter, the Stack Pointer
and the Status
Register to stack.
Binary Command
15 14 13 12 11 |
10 9 8 7 6 5 4 3 |
2 1 0 |
11001 |
---------- |
Adr(x) |
Example
PSH R[3]
15 14 13 12 11 |
10 9 8 7 6 5 4 3 |
2 1 0 |
11001 |
---------- |
011 |