summaryrefslogtreecommitdiff
path: root/cpu/instructions/transfer/push.txt
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/instructions/transfer/push.txt')
-rw-r--r--cpu/instructions/transfer/push.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/cpu/instructions/transfer/push.txt b/cpu/instructions/transfer/push.txt
new file mode 100644
index 0000000..9ea7f10
--- /dev/null
+++ b/cpu/instructions/transfer/push.txt
@@ -0,0 +1,11 @@
+Number of parameters: 1
+
+Usage:
+ push <value>
+
+Effect:
+ Decrements SP by sizeof <value>, then sets [SP] to <value>
+ See ./push_pop_notes.txt
+
+Exceptions:
+ Stack error if [SP] is not writable