From 44dc34e52de86f4f6ebbd9196cb8fbcfa7902048 Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Wed, 26 Feb 2020 10:25:46 -0500 Subject: [PATCH] Update spec for push and pop operations Signed-off-by: Alek Ratzloff --- vm.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vm.md b/vm.md index 7b59f83..bc91963 100644 --- a/vm.md +++ b/vm.md @@ -200,14 +200,21 @@ wrapping around to 0. * Push * Opcode: 0x2002 * 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 * Opcode: 0x2003 * 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 * Mov * Opcode: 0x3000 + * Params: Source, Dest ## Miscellaneous