aboutsummaryrefslogtreecommitdiff
path: root/ia32/macro.sts
diff options
context:
space:
mode:
authorexegete <nikitf-97@mail.ru>2020-10-16 20:14:51 +0300
committerexegete <nikitf-97@mail.ru>2020-10-16 20:14:51 +0300
commitce9e52469d0b12b3231ccc199e1b19bb924f54cd (patch)
treeb011b8652e33a655852608dbba387d8bfec06805 /ia32/macro.sts
parent8ed92623de375e93d384aeeaf9f2520f48c9257d (diff)
downloadcryptrobber-ce9e52469d0b12b3231ccc199e1b19bb924f54cd.tar
cryptrobber-ce9e52469d0b12b3231ccc199e1b19bb924f54cd.tar.xz
cryptrobber-ce9e52469d0b12b3231ccc199e1b19bb924f54cd.zip
test module; top, as added
Diffstat (limited to 'ia32/macro.sts')
-rw-r--r--ia32/macro.sts18
1 files changed, 16 insertions, 2 deletions
diff --git a/ia32/macro.sts b/ia32/macro.sts
index 3842a5c..5aa3b35 100644
--- a/ia32/macro.sts
+++ b/ia32/macro.sts
@@ -18,14 +18,19 @@
_docol # 4 ?+ ?.
]
+[ defconst 2
+ defasm %1%
+ # 68 ?' # %2% ?. ; push %2%
+ next
+]
+
[ defarr 2
_data_segment ?choose
?$ ?? _%1%_arr
# %2% # 4 ?* ?res
_code_segment ?choose
defasm %1%
- ; push _%1%_arr
- # 68 ?' _%1%_arr ?.
+ # 68 ?' _%1%_arr ?. ; push _%1%_arr
next
]
@@ -33,6 +38,15 @@
defarr %1% 1
]
+[ as 1
+ _data_segment ?choose
+ defword %1%
+ lit ?$ # 0 ?.
+ exit
+ _code_segment ?choose
+ lit ?. !
+]
+
[ literal 0
lit # %1% ?.
]