2024-01-16 17:20:27 +00:00
|
|
|
SECTION .multiboot
|
|
|
|
ALIGN 4
|
2024-01-26 23:50:01 +00:00
|
|
|
extern kern
|
2024-01-16 17:20:27 +00:00
|
|
|
mboot:
|
2024-01-26 23:50:01 +00:00
|
|
|
mov ax, 9ch
|
|
|
|
mov ss, ax ;cannot be written directly
|
|
|
|
mov sp, 4094d
|
|
|
|
mov ax, 7c0h
|
|
|
|
mov ds, ax ;cannot be written directly
|
|
|
|
call kern
|
|
|
|
quit:
|
|
|
|
hlt
|
|
|
|
jmp quit
|
|
|
|
jmp $
|
|
|
|
times 510-($-$$) db 0
|
|
|
|
dw 0xAA55
|