boot/kernel: print banner

This commit is contained in:
Nero 2020-09-27 15:45:19 +00:00
parent 729e6790ef
commit 31c6ef5876

View File

@ -14,12 +14,18 @@ init: cli
mov ss, ax mov ss, ax
mov sp, ( stack+stacksize ) mov sp, ( stack+stacksize )
int 3 print_banner: mov si, banner
mov ah, 0x0e
xor bx, bx
.loop: lodsb
int 0x10
cmp al, 0x0D
jnz .loop
hlt: hlt hlt: hlt
jmp hlt jmp hlt
db "rdos kernel" banner: db "rdos kernel", 0x0A, 0x0D
end: align 512 end: align 512