Making the Multiboot structure a bit shorter to conserve line length
This commit is contained in:
parent
208d05b139
commit
1034574d1e
1 changed files with 11 additions and 11 deletions
|
@ -2,19 +2,19 @@ format binary
|
||||||
use32
|
use32
|
||||||
org 0x100000
|
org 0x100000
|
||||||
|
|
||||||
MULTIBOOT_HEADER_MAGIC equ 0x1BADB002
|
MB_HEADER_MAGIC equ 0x1BADB002
|
||||||
MULTIBOOT_PAGE_ALIGN equ (1 shl 0)
|
MB_PAGE_ALIGN equ (1 shl 0)
|
||||||
MULTIBOOT_MEMORY_INFO equ (1 shl 1)
|
MB_MEMORY_INFO equ (1 shl 1)
|
||||||
MULTIBOOT_VIDEO_REQUEST equ (1 shl 2)
|
MB_VIDEO_REQUEST equ (1 shl 2)
|
||||||
MULTIBOOT_AOUT_KLUDGE equ (1 shl 16)
|
MB_AOUT_KLUDGE equ (1 shl 16)
|
||||||
MULTIBOOT_HEADER_FLAGS equ MULTIBOOT_PAGE_ALIGN or MULTIBOOT_MEMORY_INFO or MULTIBOOT_VIDEO_REQUEST
|
MB_HEADER_FLAGS equ MB_PAGE_ALIGN or MB_MEMORY_INFO or MB_VIDEO_REQUEST
|
||||||
MULTIBOOT_HEADER_FLAGS equ MULTIBOOT_PAGE_ALIGN or MULTIBOOT_MEMORY_INFO or MULTIBOOT_VIDEO_REQUEST or MULTIBOOT_AOUT_KLUDGE
|
MB_HEADER_FLAGS equ MB_PAGE_ALIGN or MB_MEMORY_INFO or MB_VIDEO_REQUEST or MB_AOUT_KLUDGE
|
||||||
MULTIBOOT_CHECKSUM equ -(MULTIBOOT_HEADER_MAGIC + MULTIBOOT_HEADER_FLAGS)
|
MB_CHECKSUM equ -(MB_HEADER_MAGIC + MB_HEADER_FLAGS)
|
||||||
|
|
||||||
multiboot:
|
multiboot:
|
||||||
dd MULTIBOOT_HEADER_MAGIC
|
dd MB_HEADER_MAGIC
|
||||||
dd MULTIBOOT_HEADER_FLAGS
|
dd MB_HEADER_FLAGS
|
||||||
dd MULTIBOOT_CHECKSUM
|
dd MB_CHECKSUM
|
||||||
dd multiboot ; header address
|
dd multiboot ; header address
|
||||||
dd 0x100000 ; load address
|
dd 0x100000 ; load address
|
||||||
dd bss ; load end address
|
dd bss ; load end address
|
||||||
|
|
Loading…
Reference in a new issue