mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-28 20:00:57 +01: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.
31 lines
362 B
NASM
31 lines
362 B
NASM
%ifdef CONFIG
|
|
{
|
|
"RegData": {
|
|
"RAX": "0x1",
|
|
"RBX": "0xFFFFFFFFFFFFFFFF"
|
|
}
|
|
}
|
|
%endif
|
|
|
|
mov r15, 0xe0000000
|
|
|
|
mov rax, 0x0
|
|
mov [r15 + 8 * 0], rax
|
|
mov rax, 0x1
|
|
mov [r15 + 8 * 1], rax
|
|
mov rax, 0x2
|
|
mov [r15 + 8 * 2], rax
|
|
|
|
mov r10, 0x1
|
|
mov r11, 0x0
|
|
mov r12, 0x1
|
|
|
|
cmp r10d, r12d
|
|
|
|
mov rax, -1
|
|
mov rbx, -1
|
|
cmovns rax, [r15 + 8 * 1]
|
|
cmovs rbx, [r15 + 8 * 0]
|
|
|
|
hlt
|