mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-29 03:00:54 +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.
34 lines
333 B
NASM
34 lines
333 B
NASM
%ifdef CONFIG
|
|
{
|
|
"Ignore": [],
|
|
"RegData": {
|
|
"RAX": "1",
|
|
"RBX": "2"
|
|
}
|
|
}
|
|
%endif
|
|
|
|
jmp label
|
|
label:
|
|
|
|
mov rsp, 0xe8000000
|
|
|
|
; Test direct literal call
|
|
call function
|
|
|
|
; Move the absolute address of function2 in to rbx and call it
|
|
lea rbx, [rel function2]
|
|
call rbx
|
|
|
|
hlt
|
|
|
|
function:
|
|
mov rax, 1
|
|
ret
|
|
|
|
function2:
|
|
mov rbx, 2
|
|
ret
|
|
|
|
hlt
|