diff options
author | exegete <nikitf-97@mail.ru> | 2020-10-16 23:20:36 +0300 |
---|---|---|
committer | exegete <nikitf-97@mail.ru> | 2020-10-16 23:20:36 +0300 |
commit | 808a161313e0a03ead45f843fee3d9c40bec02bd (patch) | |
tree | d9db2581b6eb6c3210f311a6780f10d9b0d924f5 | |
parent | a5ada20d77f6fcf7bf54e49402e55d3b1c56df5e (diff) | |
download | cryptrobber-808a161313e0a03ead45f843fee3d9c40bec02bd.tar cryptrobber-808a161313e0a03ead45f843fee3d9c40bec02bd.tar.xz cryptrobber-808a161313e0a03ead45f843fee3d9c40bec02bd.zip |
ref (asm) added
-rw-r--r-- | ia32/macro.sts | 4 | ||||
-rw-r--r-- | ia32/stack.sts | 7 |
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] |