Code: Select all
MBOOT_HEADER_MAGIC equ 0x1BADB002
MBOOT_HEADER_FLAGS equ (1<<0) | (1<<1) | (1<<2) | (1<<16)
MBOOT_CHECKSUM equ -(MBOOT_HEADER_MAGIC + MBOOT_HEADER_FLAGS)
global mboot
extern code
extern bss
extern end
ALIGN 4
mboot:
dd MBOOT_HEADER_MAGIC
dd MBOOT_HEADER_FLAGS
dd MBOOT_CHECKSUM
dd mboot
dd code
dd bss
dd end
dd start
dd 1
dd 0
dd 0
dd 0
Code: Select all
mboot:
dd MBOOT_HEADER_MAGIC
dd MBOOT_HEADER_FLAGS
dd MBOOT_CHECKSUM
dd mboot
dd code
dd bss
dd end
dd start
dd 0
dd 0
dd 0
dd 0
I thought it was weird that it set the video mode but didn't provide mode info or even a memory map. I can't find anything in the multiboot spec that would explain it. Does anyone know why it would do this?
Thanks.