Skip to content

Instantly share code, notes, and snippets.

@lovesegfault
Created August 18, 2016 19:43
Show Gist options
  • Save lovesegfault/1daafa5d268cb8811f79bee22dfdffe8 to your computer and use it in GitHub Desktop.
Save lovesegfault/1daafa5d268cb8811f79bee22dfdffe8 to your computer and use it in GitHub Desktop.
global long_mode_start
section .text
bits 64
long_mode_start:
; print `OKAY` to screen
mov rax, 0x2f212f6e2f612f44
mov rbx, 0x2f202f732f6b2f6e
mov rcx, 0x2f612f682f54
mov qword [0xb8000], rcx
mov qword [0xb8006], rbx
mov qword [0xb800e], rax
hlt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment