aboutsummaryrefslogtreecommitdiff
path: root/ia32
diff options
context:
space:
mode:
authorexegete <nikitf-97@mail.ru>2020-10-16 23:20:36 +0300
committerexegete <nikitf-97@mail.ru>2020-10-16 23:20:36 +0300
commit808a161313e0a03ead45f843fee3d9c40bec02bd (patch)
treed9db2581b6eb6c3210f311a6780f10d9b0d924f5 /ia32
parenta5ada20d77f6fcf7bf54e49402e55d3b1c56df5e (diff)
downloadcryptrobber-808a161313e0a03ead45f843fee3d9c40bec02bd.tar
cryptrobber-808a161313e0a03ead45f843fee3d9c40bec02bd.tar.xz
cryptrobber-808a161313e0a03ead45f843fee3d9c40bec02bd.zip
ref (asm) added
Diffstat (limited to 'ia32')
-rw-r--r--ia32/macro.sts4
-rw-r--r--ia32/stack.sts7
2 files changed, 7 insertions, 4 deletions
diff --git a/ia32/macro.sts b/ia32/macro.sts
index 34c3a9d..9335176 100644
--- a/ia32/macro.sts
+++ b/ia32/macro.sts
@@ -51,10 +51,6 @@
top as %1%
]
-[ ref 0
- top + 1 +
-]
-
[ literal 0
lit # %1% ?.
]
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]