aboutsummaryrefslogtreecommitdiff
path: root/ia32/stack.sts
diff options
context:
space:
mode:
Diffstat (limited to 'ia32/stack.sts')
-rw-r--r--ia32/stack.sts7
1 files changed, 7 insertions, 0 deletions
diff --git a/ia32/stack.sts b/ia32/stack.sts
index f3c8bab..e884098 100644
--- a/ia32/stack.sts
+++ b/ia32/stack.sts
@@ -2,6 +2,13 @@ defasm top
# 54 ?' ; push esp
next
+defasm ref
+ # 58 ?' ; pop eax
+ # c1 ?' # e0 ?' # 2 ?' ; shl eax, 2
+ # 01 ?' # e0 ?' ; add eax, esp
+ # 50 ?' ; push eax
+next
+
defasm get
# 58 ?' ; pop eax
# 8b ?' # 4 ?' # 84 ?' ; mov eax, [esp + 4 * eax]