v86/tests/nasm/ret-imm.asm
2020-08-30 19:37:15 -05:00

16 lines
205 B
NASM

global _start
%include "header.inc"
jmp start
foo:
mov eax, esp
ret 123
start:
call foo
mov dword [eax], 0 ; clear the address pushed by the call instruction
%include "footer.inc"