mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Print OS returned! instead of OKAY
This commit is contained in:
@@ -22,9 +22,14 @@ long_mode_start:
|
||||
|
||||
; call rust main
|
||||
call main
|
||||
; print `OKAY` to screen
|
||||
mov rax, 0x2f592f412f4b2f4f
|
||||
mov qword [0xb8000], rax
|
||||
.os_returned:
|
||||
; rust main returned, print `OS returned!`
|
||||
mov rax, 0x4f724f204f534f4f
|
||||
mov [0xb8000], rax
|
||||
mov rax, 0x4f724f754f744f65
|
||||
mov [0xb8008], rax
|
||||
mov rax, 0x4f214f644f654f6e
|
||||
mov [0xb8010], rax
|
||||
hlt
|
||||
|
||||
; Check for SSE and enable it. If it's not supported throw error "a".
|
||||
|
||||
Reference in New Issue
Block a user