mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-01-10 15:50:18 +00:00
60 lines
1.4 KiB
NASM
60 lines
1.4 KiB
NASM
%ifdef CONFIG
|
|
{
|
|
"RegData": {
|
|
"XMM0": ["0x41424344c0400000", "0x5152535455565758"],
|
|
"XMM1": ["0x4142434440800000", "0x5152535455565758"],
|
|
"XMM2": ["0x41424344c0e00000", "0x5152535455565758"],
|
|
"XMM3": ["0x4142434441800000", "0x5152535455565758"],
|
|
"XMM4": ["0x4142434441c00000", "0x5152535455565758"],
|
|
"XMM5": ["0x4142434441a80000", "0x5152535455565758"]
|
|
},
|
|
"MemoryRegions": {
|
|
"0x100000000": "4096"
|
|
}
|
|
}
|
|
%endif
|
|
|
|
mov rdx, 0xe0000000
|
|
|
|
mov rax, 0x414243443f800000 ; 1.0
|
|
mov [rdx + 8 * 0], rax
|
|
mov rax, 0x5152535455565758
|
|
mov [rdx + 8 * 1], rax
|
|
|
|
mov rax, 0x4142434440800000 ; 4.0
|
|
mov [rdx + 8 * 2], rax
|
|
mov rax, 0x5152535455565758
|
|
mov [rdx + 8 * 3], rax
|
|
|
|
mov rax, 0x4142434441100000 ; 9.0
|
|
mov [rdx + 8 * 4], rax
|
|
mov rax, 0x5152535455565758
|
|
mov [rdx + 8 * 5], rax
|
|
|
|
mov rax, 0x4142434441800000 ; 16.0
|
|
mov [rdx + 8 * 6], rax
|
|
mov rax, 0x5152535455565758
|
|
mov [rdx + 8 * 7], rax
|
|
|
|
mov rax, 0x4142434441c80000 ; 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]
|
|
|
|
subss xmm0, xmm1 ; 1.0 <op> 4.0
|
|
subss xmm2, xmm3 ; 9.0 <op> 16.0
|
|
|
|
subss xmm4, [rdx + 8 * 0] ; 25.0 <op> 1.0
|
|
subss xmm5, [rdx + 8 * 2] ; 25.0 <op> 4.0
|
|
|
|
hlt
|