aboutsummaryrefslogtreecommitdiff
path: root/ia32/stack.sts
diff options
context:
space:
mode:
Diffstat (limited to 'ia32/stack.sts')
-rw-r--r--ia32/stack.sts25
1 files changed, 25 insertions, 0 deletions
diff --git a/ia32/stack.sts b/ia32/stack.sts
new file mode 100644
index 0000000..a8ac749
--- /dev/null
+++ b/ia32/stack.sts
@@ -0,0 +1,25 @@
+defasm drop
+; pop eax
+# 58 ?'
+next
+
+defasm dup
+; push dword [esp]
+# ff ?' # 34 ?' # 24 ?'
+next
+
+defasm over
+; push dword [esp + 4]
+# ff ?' # 74 ?' # 24 ?' # 4 ?'
+next
+
+defasm swap
+; pop eax
+# 58 ?'
+; pop ebx
+# 5b ?'
+; push eax
+# 50 ?'
+; push ebx
+# 53 ?'
+next