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

29 lines
356 B
NASM

%ifdef CONFIG
{
"RegData": {
"RAX": "0x400",
"MM7": ["0x8000000000000000", "0x3FFF"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov eax, 0x44800000 ; 1024.0
mov [rdx + 8 * 0], eax
mov eax, 0
mov [rdx + 8 * 1], eax
fld dword [rdx + 8 * 0]
fisttp dword [rdx + 8 * 1]
fld1
mov eax, [rdx + 8 * 1]
hlt