Skip to content

Instantly share code, notes, and snippets.

View longofrancoale's full-sized avatar

Franco Longo longofrancoale

  • Italy
  • 02:17 (UTC +02:00)
View GitHub Profile
; Using Nasm To Compile
; Declare constants for the multiboot header.
MBALIGN equ 1 << 0 ; align loaded modules on page boundaries
MEMINFO equ 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
CHECKSUM equ -(MAGIC + FLAGS) ; checksum of above, to prove we are multiboot
; Declare a multiboot header that marks the program as a kernel. These are magic
; values that are documented in the multiboot standard. The bootloader will
### Keybase proof
I hereby claim:
* I am longofrancoale on github.
* I am rnjhbmnv (https://keybase.io/rnjhbmnv) on keybase.
* I have a public key ASBHiebq23kzCZVMzNCXWNdTbyFHy8HuIKpqJBT6iAI6ggo
To claim this, I am signing this object: