aboutsummaryrefslogtreecommitdiff
path: root/ia32/float
diff options
context:
space:
mode:
authorexegete <nikitf-97@mail.ru>2020-10-17 16:40:23 +0300
committerexegete <nikitf-97@mail.ru>2020-10-17 16:40:23 +0300
commit65c54a8986b3519c1949d280e58f46af2eceff85 (patch)
tree0c2a20ec51f0ca2d1472b8df3dd79871e544d99a /ia32/float
parentb6b9e29c1484c9c8b8af2b382d3a9d796c310217 (diff)
downloadcryptrobber-65c54a8986b3519c1949d280e58f46af2eceff85.tar
cryptrobber-65c54a8986b3519c1949d280e58f46af2eceff85.tar.xz
cryptrobber-65c54a8986b3519c1949d280e58f46af2eceff85.zip
float, constants, ets
Diffstat (limited to 'ia32/float')
-rw-r--r--ia32/float/float.sts37
1 files changed, 37 insertions, 0 deletions
diff --git a/ia32/float/float.sts b/ia32/float/float.sts
new file mode 100644
index 0000000..158781c
--- /dev/null
+++ b/ia32/float/float.sts
@@ -0,0 +1,37 @@
+defasm float_init
+ # 9b ?' ; wait
+ # db ?' # e3 ?' ; fninit
+next
+
+defasm float_fload
+ # d9 ?' # 04 ?' # 24 ?' ; fld dword [esp]
+ # 58 ?' ; pop eax
+next
+
+defasm float_iload
+ # db ?' # 04 ?' # 24 ?' ; fild dword [esp]
+ # 58 ?' ; pop eax
+next
+
+defasm float_fstore
+ # 50 ?' ; push eax
+ # d9 ?' # 1c ?' # 24 ?' ; fstp dword [esp]
+next
+
+defasm float_istore
+ # 50 ?' ; push eax
+ # db ?' # 1c ?' # 24 ?' ; fistp dword [esp]
+next
+
+defasm float_status
+ # de ?' # f9 ?' ; fnstsw ax
+ # 50 ?' ; push eax
+next
+
+defasm float_add
+ # de ?' # c1 ?' ; faddp st1, st0
+next
+
+defasm float_div
+ # de ?' # f9 ?' ; fdivp st1, st0
+next