entry_unix_no_crt_i386.asm 296 B

123456789101112131415161718
  1. bits 32
  2. extern _start_odin
  3. global _start
  4. section .text
  5. ;; NOTE(flysand): For description see the corresponding *_amd64.asm file
  6. ;; also I didn't test this on x86-32
  7. _start:
  8. xor ebp, rbp
  9. pop ecx
  10. mov eax, esp
  11. and esp, -16
  12. push eax
  13. push ecx
  14. call _start_odin
  15. jmp $$