mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 09:00:40 +02:00
FEX's ASM unitests had the problem that they were copy and pasted templates and MemoryRegion was copied in to almost all tests. Very few tests actually use the MemoryRegion they were asking for and instead used none, or the hardcoded memory regions that the TestHarnessRunner provides. This is entirely a sed replacement and minor fixups plus reverts for the few tests that actually use the region asked for.
65 lines
1.3 KiB
NASM
65 lines
1.3 KiB
NASM
%ifdef CONFIG
|
|
{
|
|
"RegData": {
|
|
"RAX": "0x4142434457585847",
|
|
"RBX": "0x6162636477786566",
|
|
"RCX": "0x9596979897988182",
|
|
"RDX": "0x939495969798A1A2",
|
|
"RSI": "0xB1B2B3B4B5B6B7B8"
|
|
}
|
|
}
|
|
%endif
|
|
|
|
mov rdx, 0xe0000000
|
|
|
|
mov rax, 0x4142434445464748
|
|
mov [rdx + 8 * 0], rax
|
|
mov rax, 0x5152535455565758
|
|
mov [rdx + 8 * 1], rax
|
|
|
|
mov rax, 0x6162636465666768
|
|
mov [rdx + 8 * 2], rax
|
|
mov rax, 0x7172737475767778
|
|
mov [rdx + 8 * 3], rax
|
|
|
|
mov rax, 0x8182838485868788
|
|
mov [rdx + 8 * 4], rax
|
|
mov rax, 0x9192939495969798
|
|
mov [rdx + 8 * 5], rax
|
|
mov rax, 0xA1A2A3A4A5A6A7A8
|
|
mov [rdx + 8 * 6], rax
|
|
mov rax, 0xB1B2B3B4B5B6B7B8
|
|
mov [rdx + 8 * 7], rax
|
|
|
|
mov rax, [rdx + 8 * 1]
|
|
mov cl, 8
|
|
shrd word [rdx + 8 * 0 + 0], ax, cl
|
|
mov cl, 16
|
|
shrd word [rdx + 8 * 0 + 2], ax, cl
|
|
mov cl, 32
|
|
shrd word [rdx + 8 * 0 + 4], ax, cl
|
|
|
|
mov rax, [rdx + 8 * 3]
|
|
mov cl, 16
|
|
shrd dword [rdx + 8 * 2 + 0], eax, cl
|
|
mov cl, 32
|
|
shrd dword [rdx + 8 * 2 + 4], eax, cl
|
|
|
|
mov rax, [rdx + 8 * 5]
|
|
mov cl, 16
|
|
shrd qword [rdx + 8 * 4 + 0], rax, cl
|
|
mov cl, 32
|
|
shrd qword [rdx + 8 * 4 + 0], rax, cl
|
|
mov cl, 48
|
|
shrd qword [rdx + 8 * 6 + 0], rax, cl
|
|
mov cl, 64
|
|
shrd qword [rdx + 8 * 7 + 0], rax, cl
|
|
|
|
mov rax, qword [rdx + 8 * 0]
|
|
mov rbx, qword [rdx + 8 * 2]
|
|
mov rcx, qword [rdx + 8 * 4]
|
|
mov rsi, qword [rdx + 8 * 7]
|
|
mov rdx, qword [rdx + 8 * 6]
|
|
|
|
hlt
|