mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 10:00:16 +02:00
asm_tests: Clear IE flag on fninit
This commit is contained in:
1 parent
3bf323aa2b
commit
af561abc71
2 files changed
+37
No files matched your search
@@ -0,0 +1,19 @@
|
||||
%ifdef CONFIG
|
||||
{
|
||||
"RegData": {
|
||||
"RAX": "0"
|
||||
},
|
||||
"Mode": "32BIT"
|
||||
}
|
||||
%endif
|
||||
|
||||
; Tests that fninit clears the status word (which includes the IE flag)
|
||||
fninit
|
||||
fldz
|
||||
fldz
|
||||
fdiv ; sets IE flag
|
||||
|
||||
fninit
|
||||
fnstsw ax
|
||||
|
||||
hlt
|
||||
@@ -0,0 +1,18 @@
|
||||
%ifdef CONFIG
|
||||
{
|
||||
"RegData": {
|
||||
"RAX": "0"
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
; Tests that fninit clears the status word (which includes the IE flag)
|
||||
fninit
|
||||
fldz
|
||||
fldz
|
||||
fdiv ; sets IE flag
|
||||
|
||||
fninit
|
||||
fnstsw ax
|
||||
|
||||
hlt
|
||||
Reference in new issue
Block a user