From be953c23a9ee9c328d186e0afd7fbc0855eefd3a Mon Sep 17 00:00:00 2001 From: exegete Date: Sat, 17 Oct 2020 20:59:23 +0300 Subject: float lib finished --- ia32/float/control.sts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ia32/float/control.sts (limited to 'ia32/float/control.sts') 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 -- cgit v1.2.3