aboutsummaryrefslogtreecommitdiff
path: root/ia32/float/control.sts
diff options
context:
space:
mode:
authorexegete <nikitf-97@mail.ru>2020-10-17 20:59:23 +0300
committerexegete <nikitf-97@mail.ru>2020-10-17 20:59:23 +0300
commitbe953c23a9ee9c328d186e0afd7fbc0855eefd3a (patch)
treeec1ffff1f9800dabaee3d4fd5331360e90d5e413 /ia32/float/control.sts
parent370a55aa3b2480f87a90a83d7b8127f9159af750 (diff)
downloadcryptrobber-be953c23a9ee9c328d186e0afd7fbc0855eefd3a.tar
cryptrobber-be953c23a9ee9c328d186e0afd7fbc0855eefd3a.tar.xz
cryptrobber-be953c23a9ee9c328d186e0afd7fbc0855eefd3a.zip
float lib finished
Diffstat (limited to 'ia32/float/control.sts')
-rw-r--r--ia32/float/control.sts19
1 files changed, 19 insertions, 0 deletions
diff --git a/ia32/float/control.sts b/ia32/float/control.sts
new file mode 100644
index 0000000..3863f5f
--- /dev/null
+++ b/ia32/float/control.sts
@@ -0,0 +1,19 @@
+defasm float_init
+ # 9b ?' ; wait
+ # db ?' # e3 ?' ; fninit
+next
+
+defasm float_cload
+ # d9 ?' # 2c ?' # 24 ?' ; fldcw [esp]
+ # 58 ?' ; pop eax
+next
+
+defasm float_sstore
+ # 9b ?' # df ?' # e0 ?' ; fstsw ax
+ # 50 ?' ; push eax
+next
+
+defasm float_cstore
+ # 50 ?' ; push eax
+ # d9 ?' # 3c ?' # 24 ?' ; fstcw [esp]
+next