mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-01-08 22:52:51 +00:00
38 lines
493 B
NASM
38 lines
493 B
NASM
%ifdef CONFIG
|
|
{
|
|
"RegData": {
|
|
"RAX": "0x4142434445464748"
|
|
},
|
|
"MemoryRegions": {
|
|
"0x100000000": "4096"
|
|
}
|
|
}
|
|
%endif
|
|
|
|
mov r15, 0xe0000000
|
|
lea rsp, [r15 + 8 * 4]
|
|
|
|
mov rax, 0x4142434445464748
|
|
mov [r15 + 8 * 0], rax
|
|
mov rax, 0x5152535455565758
|
|
mov [r15 + 8 * 1], rax
|
|
|
|
lea rbx, [rel .call_tgt]
|
|
mov [r15 + 8 * 2], rbx
|
|
|
|
mov rax, 0
|
|
call qword [r15 + 8 * 2]
|
|
jmp .end
|
|
|
|
.call_tgt:
|
|
mov rax, [r15 + 8 * 0]
|
|
ret
|
|
|
|
; Couple things that could catch failure
|
|
mov rax, 0
|
|
jmp .end
|
|
mov rax, 0
|
|
|
|
.end:
|
|
hlt
|