]> git.dujemihanovic.xyz Git - nameless-os.git/blob - boot.s
Can now print hexadecimal numbers
[nameless-os.git] / boot.s
1 bits 16 ; boot sectors run in real mode
2 org 7c00h ; boot sector is loaded at 0x7c00
3
4 mov dx, 0DEADh ; number to print
5 mov cl, 0 ; column
6 mov ch, 0 ; row
7 call print_word
8 mov dx, 0BEEFh
9 mov cl, 0
10 mov ch, 1
11 call print_word
12
13 jmp $
14
15 %include "print.s"
16
17 times 510-($-$$) db 0 ; fill with 0 until 0x1fc is reached
18 dw 0AA55h ; BIOS MBR signature