From 31c6ef5876c237ca15ef3a1bb400d53702727c39 Mon Sep 17 00:00:00 2001 From: Nero <41307858+nero@users.noreply.github.com> Date: Sun, 27 Sep 2020 15:45:19 +0000 Subject: [PATCH] boot/kernel: print banner --- boot/kernel.asm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/boot/kernel.asm b/boot/kernel.asm index 09f5c37..a430c74 100644 --- a/boot/kernel.asm +++ b/boot/kernel.asm @@ -14,12 +14,18 @@ init: cli mov ss, ax 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 jmp hlt - db "rdos kernel" +banner: db "rdos kernel", 0x0A, 0x0D end: align 512