mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-17 06:47: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 rust main
|
||||||
call main
|
call main
|
||||||
; print `OKAY` to screen
|
.os_returned:
|
||||||
mov rax, 0x2f592f412f4b2f4f
|
; rust main returned, print `OS returned!`
|
||||||
mov qword [0xb8000], rax
|
mov rax, 0x4f724f204f534f4f
|
||||||
|
mov [0xb8000], rax
|
||||||
|
mov rax, 0x4f724f754f744f65
|
||||||
|
mov [0xb8008], rax
|
||||||
|
mov rax, 0x4f214f644f654f6e
|
||||||
|
mov [0xb8010], rax
|
||||||
hlt
|
hlt
|
||||||
|
|
||||||
; Check for SSE and enable it. If it's not supported throw error "a".
|
; Check for SSE and enable it. If it's not supported throw error "a".
|
||||||
|
|||||||
Reference in New Issue
Block a user