diff --git a/boot/kernel.asm b/boot/kernel.asm index 06488fa..2036007 100644 --- a/boot/kernel.asm +++ b/boot/kernel.asm @@ -1,6 +1,8 @@ org 0x7C00 -main: mov si, msg +main: push cs + pop ds + mov si, msg mov ah, 0x0e xor bx, bx loop: lodsb @@ -11,4 +13,5 @@ loop: lodsb end: hlt jmp end + align 2048 msg: db "rdos kernel stub", 0x0A, 0x0D, 0