Files
FEX-Emu--FEX/unittests/ASM/SelfModifyingCode/DifferentBlock.asm
T
Ryan Houdek 9399790c11 unittests/ASM: Fix tests expecting a working stack
HostRunner and FEX may or may not set stack. Fix the cases that assumed
it was correctly setup.
2025-03-20 16:54:56 -07:00

29 lines
251 B
NASM

%ifdef CONFIG
{
"Match": "All",
"RegData": {
"RAX": "0x20"
}
}
%endif
mov rsp, 0xe000_1000
jmp main
patched_op:
mov rax,-1
ret
main:
; warm up the cache
call patched_op
mov byte [rel patched_op], 0xC3
mov rax, 32
call patched_op
hlt