Update spec for push and pop operations
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
7
vm.md
7
vm.md
@@ -200,14 +200,21 @@ wrapping around to 0.
|
|||||||
* Push
|
* Push
|
||||||
* Opcode: 0x2002
|
* Opcode: 0x2002
|
||||||
* Params: Source
|
* Params: Source
|
||||||
|
* When this instruction is executed, these actions occur:
|
||||||
|
* Set the value in memory at the current stack pointer to the source value.
|
||||||
|
* Increment the stack pointer by the size of value at the source.
|
||||||
* Pop
|
* Pop
|
||||||
* Opcode: 0x2003
|
* Opcode: 0x2003
|
||||||
* Params: Dest
|
* Params: Dest
|
||||||
|
* When this instruction is executed, these actions occur:
|
||||||
|
* Decrement the stack pointer by the size of value at the destination.
|
||||||
|
* Copy the value at the stack pointer into the destination.
|
||||||
|
|
||||||
## Data movement
|
## Data movement
|
||||||
|
|
||||||
* Mov
|
* Mov
|
||||||
* Opcode: 0x3000
|
* Opcode: 0x3000
|
||||||
|
* Params: Source, Dest
|
||||||
|
|
||||||
## Miscellaneous
|
## Miscellaneous
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user