mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-01-10 07:41:41 +00:00
27 lines
395 B
NASM
27 lines
395 B
NASM
%ifdef CONFIG
|
|
{
|
|
"RegData": {
|
|
"RAX": "0x4008000000000000"
|
|
},
|
|
"Env": { "FEX_X87REDUCEDPRECISION" : "1" }
|
|
}
|
|
%endif
|
|
|
|
mov rdx, 0xe0000000
|
|
|
|
mov rax, 0x3ff0000000000000 ; 1.0
|
|
mov [rdx + 8 * 0], rax
|
|
mov rax, 0x4000000000000000 ; 2.0
|
|
mov [rdx + 8 * 1], rax
|
|
|
|
fld qword [rdx + 8 * 0]
|
|
fld qword [rdx + 8 * 1]
|
|
|
|
; fadd st(0), st(i)
|
|
fadd st0, st1
|
|
|
|
fst qword [rdx + 8 * 2]
|
|
mov rax, [rdx + 8 * 2]
|
|
|
|
hlt
|