ret-imm.asm 205 B

123456789101112131415
  1. global _start
  2. %include "header.inc"
  3. jmp start
  4. foo:
  5. mov eax, esp
  6. ret 123
  7. start:
  8. call foo
  9. mov dword [eax], 0 ; clear the address pushed by the call instruction
  10. %include "footer.inc"