FEX/unittests/ASM/X87/D8_01.asm
2020-05-28 14:47:43 -07:00

22 lines
323 B
NASM

%ifdef CONFIG
{
"RegData": {
"MM7": ["0x8000000000000000", "0x4000"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x3ff0000000000000 ; 1.0
mov [rdx + 8 * 0], rax
mov rax, 0x40000000 ; 2.0
mov [rdx + 8 * 1], rax
fld qword [rdx + 8 * 0]
fmul dword [rdx + 8 * 1]
hlt