X-Git-Url: http://git.dujemihanovic.xyz/projects?a=blobdiff_plain;f=boot.s;h=eb115d0324dd6a2e8e83d94aee9d197d71299392;hb=b85f8e94af0b9720083f5cd48092ead24e6004c3;hp=76880b009eded1d15e93792478061d121a920859;hpb=f9f4f8ebffb463d53ae5a239ddfbe8380f258b8b;p=nameless-os.git diff --git a/boot.s b/boot.s index 76880b0..eb115d0 100644 --- 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