Multiboot1 Bare Bones with NASM: Difference between revisions

no edit summary
[unchecked revision][unchecked revision]
m (Fixed alignment)
No edit summary
Line 7:
<source lang="asm">
; Declare constants for the multiboot header.
MBALIGN equ 1 <<0 0 ; align loaded modules on page boundaries
MEMINFO equ 1 <<1 1 ; provide memory map
FLAGS equ MBALIGN | MEMINFO ; this is the Multiboot 'flag' field
MAGIC equ 0x1BADB002 ; 'magic number' lets bootloader find the header
Anonymous user