PiegOS/kernel/entry.asm
2015-07-19 11:20:21 +04:00

24 lines
343 B
NASM

[BITS 32]
;Define extern symbole
extern main
;Define global symbole
global _start
;Define kernel entry point
_start:
jmp begin ;Go to begin and run main kernel function
;----- Multiboot Specification Header -----
align 4 ;Align data for 32 bits
dd 0x1BADB002
dd 0x0
dd 0x1BADB002
;----- End -----
begin:
call main ;Run main function