summaryrefslogtreecommitdiff
path: root/src/crt0.S
blob: 5116a7ae946172af9e7abf33912ad10bfb155850 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#define MAGIC   0x1BADB002
#define FLAGS   0x7

.section .multiboot
    .align  4
    .long   MAGIC
    .long   FLAGS
    .long   -(MAGIC + FLAGS)

.section .text
.global _start

_start:
    push %ebx
    push %eax
    call main
    hlt