2015-07-19 11:20:21 +04:00
|
|
|
[BITS 32]
|
|
|
|
|
2015-07-19 11:52:01 +04:00
|
|
|
;Define extern symbol
|
2015-07-19 11:20:21 +04:00
|
|
|
extern main
|
|
|
|
|
2015-07-19 11:52:01 +04:00
|
|
|
;Define entry point as global for linking
|
2015-07-19 11:20:21 +04:00
|
|
|
global _start
|
|
|
|
|
|
|
|
;Define kernel entry point
|
|
|
|
_start:
|
2015-07-19 11:52:01 +04:00
|
|
|
jmp begin ;Go to begin (for skip Multiboot Specification Header)
|
2015-07-19 11:20:21 +04:00
|
|
|
|
|
|
|
|
|
|
|
;----- Multiboot Specification Header -----
|
|
|
|
align 4 ;Align data for 32 bits
|
|
|
|
dd 0x1BADB002
|
|
|
|
dd 0x0
|
|
|
|
dd 0x1BADB002
|
|
|
|
;----- End -----
|
|
|
|
|
|
|
|
|
|
|
|
begin:
|
2015-07-19 11:52:01 +04:00
|
|
|
call main ;Start kernel
|
2015-07-19 11:20:21 +04:00
|
|
|
|