Skip to content

Instantly share code, notes, and snippets.

Created March 20, 2017 15:41
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Nickforall/8224a4d3c31b1ed1c6e2aae7a6519dc0 to your computer and use it in GitHub Desktop.
Simple kernel entry point
global start
section .multiboot_header
dd 0xe85250d6 ; magic number (multiboot 2 spec)
dd 0 ; architecture 0
dd header_end - header_start ; header length
; checksum
dd 0x100000000 - (0xe85250d6 + 0 + (header_end - header_start))
; required end tag
dw 0 ; type
dw 0 ; flags
dd 8 ; size
section .text
bits 32
mov dword [0xb8000], 0x026b024f
hlt ;stop execution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment