Do a far jump to long mode and print OKAY

This commit is contained in:
Philipp Oppermann
2017-04-11 14:59:09 +02:00
parent e684bfd262
commit 415d27814f
2 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
global long_mode_start
section .text
bits 64
long_mode_start:
; print `OKAY` to screen
mov rax, 0x2f592f412f4b2f4f
mov qword [0xb8000], rax
hlt