aboutsummaryrefslogtreecommitdiff
path: root/base/runtime/entry_unix_no_crt_i386.asm
blob: a61d56a164627f4048ef35a157fd3c83d427cb59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
bits 32

extern _start_odin
global _start

section .text

;; NOTE(flysand): For description see the corresponding *_amd64.asm file
;; also I didn't test this on x86-32
_start:
    xor ebp, rbp
    pop ecx
    mov eax, esp
    and esp, -16
    push eax
    push ecx
    call _start_odin
    jmp $$