stub boot
This commit is contained in:
parent
c15eecde33
commit
4a0ac0efb7
26
boot/boot.s
26
boot/boot.s
@ -1,14 +1,20 @@
|
|||||||
mov ah, 0x0e
|
; only support mb1
|
||||||
mov al, 'H'
|
align equ 1 << 0
|
||||||
int 0x10
|
info equ 1 << 1
|
||||||
mov al, 'E'
|
flags equ align | info
|
||||||
int 0x10
|
magic equ 0x1BADB002
|
||||||
mov al, 'Y'
|
chksum equ - (magic + flags)
|
||||||
int 0x10
|
|
||||||
|
|
||||||
|
section .multiboot
|
||||||
|
align 4
|
||||||
|
dd magic
|
||||||
|
dd flags
|
||||||
|
dd chksum
|
||||||
|
|
||||||
|
global _start
|
||||||
|
extern sysinit
|
||||||
|
|
||||||
|
_start:
|
||||||
cli
|
cli
|
||||||
|
call sysinit
|
||||||
hlt
|
hlt
|
||||||
|
|
||||||
times 510 - ($ - $$) db 0
|
|
||||||
dw 0xaa55
|
|
||||||
|
Loading…
Reference in New Issue
Block a user