Files
FEX-Emu--FEX/unittests/ASM/JMP.asm
T
Ryan Houdek 7c6444c37c unitests/ASM: Removes unused MemoryRegion configs
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.
2024-10-08 16:07:25 -07:00

53 lines
496 B
NASM

%ifdef CONFIG
{
"Ignore": [],
"RegData": {
"RAX": "1",
"RBX": "2",
"RCX": "3",
"RDX": "4"
}
}
%endif
jmp label
label:
mov rsp, 0xe8000000
jmp function
func_return:
lea rbx, [rel function2]
jmp rbx
func2_return:
cmp rcx, rcx
je function3
func3_return:
mov rdx, 4
jne function4
func4_return:
hlt
function:
mov rax, 1
jmp func_return
function2:
mov rbx, 2
jmp func2_return
function3:
mov rcx, 3
jmp func3_return
function4:
mov rdx, 0xDEADBEEF
jmp func4_return
hlt