Created
August 18, 2016 19:43
-
-
Save lovesegfault/1daafa5d268cb8811f79bee22dfdffe8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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