]> git.dujemihanovic.xyz Git - nameless-os.git/blobdiff - boot.s
Add print function with some examples
[nameless-os.git] / boot.s
diff --git a/boot.s b/boot.s
index 76880b009eded1d15e93792478061d121a920859..eb115d0324dd6a2e8e83d94aee9d197d71299392 100644 (file)
--- a/boot.s
+++ b/boot.s
@@ -1,17 +1,22 @@
        bits 16 ; boot sectors run in real mode
        org 7c00h ; boot sector is loaded at 0x7c00
 
+       mov di, printing_numbers
+       call print
+
        mov dx, 0DEADh ; number to print
-       mov cl, 0 ; column
-       mov ch, 0 ; row
        call print_word
        mov dx, 0BEEFh
-       mov cl, 0
-       mov ch, 1
        call print_word
 
+       mov di, goodbye
+       call print
+
        jmp $
 
+printing_numbers: db "Printing some random hex numbers", 0
+goodbye: db "Thank you for your attention", 0
+
 %include "print.s"
 
        times 510-($-$$) db 0 ; fill with 0 until 0x1fc is reached