mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-01-08 22:52:51 +00:00
60 lines
1.4 KiB
NASM
60 lines
1.4 KiB
NASM
%ifdef CONFIG
|
|
{
|
|
"RegData": {
|
|
"XMM0": ["0xc008000000000000", "0x5152535455565758"],
|
|
"XMM1": ["0x4010000000000000", "0x5152535455565758"],
|
|
"XMM2": ["0xc01c000000000000", "0x5152535455565758"],
|
|
"XMM3": ["0x4030000000000000", "0x5152535455565758"],
|
|
"XMM4": ["0x4038000000000000", "0x5152535455565758"],
|
|
"XMM5": ["0x4035000000000000", "0x5152535455565758"]
|
|
},
|
|
"MemoryRegions": {
|
|
"0x100000000": "4096"
|
|
}
|
|
}
|
|
%endif
|
|
|
|
mov rdx, 0xe0000000
|
|
|
|
mov rax, 0x3FF0000000000000 ; 1.0
|
|
mov [rdx + 8 * 0], rax
|
|
mov rax, 0x5152535455565758
|
|
mov [rdx + 8 * 1], rax
|
|
|
|
mov rax, 0x4010000000000000 ; 4.0
|
|
mov [rdx + 8 * 2], rax
|
|
mov rax, 0x5152535455565758
|
|
mov [rdx + 8 * 3], rax
|
|
|
|
mov rax, 0x4022000000000000 ; 9.0
|
|
mov [rdx + 8 * 4], rax
|
|
mov rax, 0x5152535455565758
|
|
mov [rdx + 8 * 5], rax
|
|
|
|
mov rax, 0x4030000000000000 ; 16.0
|
|
mov [rdx + 8 * 6], rax
|
|
mov rax, 0x5152535455565758
|
|
mov [rdx + 8 * 7], rax
|
|
|
|
mov rax, 0x4039000000000000 ; 25.0
|
|
mov [rdx + 8 * 8], rax
|
|
mov rax, 0x5152535455565758
|
|
mov [rdx + 8 * 9], rax
|
|
|
|
movapd xmm0, [rdx + 8 * 0]
|
|
movapd xmm1, [rdx + 8 * 2]
|
|
movapd xmm2, [rdx + 8 * 4]
|
|
movapd xmm3, [rdx + 8 * 6]
|
|
movapd xmm4, [rdx + 8 * 8]
|
|
movapd xmm5, [rdx + 8 * 8]
|
|
movapd xmm6, [rdx + 8 * 8]
|
|
movapd xmm7, [rdx + 8 * 8]
|
|
|
|
subsd xmm0, xmm1 ; 1.0 <op> 4.0
|
|
subsd xmm2, xmm3 ; 9.0 <op> 16.0
|
|
|
|
subsd xmm4, [rdx + 8 * 0] ; 25.0 <op> 1.0
|
|
subsd xmm5, [rdx + 8 * 2] ; 25.0 <op> 4.0
|
|
|
|
hlt
|