mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 14:00:16 +02:00
25 lines
295 B
NASM
25 lines
295 B
NASM
%ifdef CONFIG
|
|
{
|
|
"RegData": {
|
|
"RAX": "1"
|
|
},
|
|
"Mode": "32BIT"
|
|
}
|
|
%endif
|
|
|
|
; Test ∞ - ∞ = Invalid Operation (should set bit 0 of status word)
|
|
fld1
|
|
fldz
|
|
fdiv ; st0 = +∞
|
|
|
|
; Duplicate +infinity on stack
|
|
fld st0
|
|
|
|
; Subtract: +∞ - +∞ -> Invalid Operation
|
|
fsub
|
|
|
|
fstsw ax
|
|
and eax, 1
|
|
|
|
hlt
|