I started creating my first OS recently (I'm a complete beginner). I wanted to know how to connect the boot file with the kernel. I tried alone but I couldn't, how can I do?
This is the project:
boot.asm
ORG 0x7C00
BITS 16
start:
mov si, msg_boot
call Print
jmp $
%include "lib/print.asm"
msg_boot: db "Test Boot" , 0
times 510 - ($- $$) db 0
dw 0xAA55
kernel.asm
BITS 16
start:
mov si, msg_kernel
call Print
jmp $
%include "lib/print.asm"
msg_kernel: db "Test Kernel" , 0
times 510 - ($- $$) db 0
dw 0xAA55
nasm -f bin -o boot.bin boot.asm
nasm -f bin -o kernel.bin kernel.asm
type boot.bin, kernel.bin > os.bin
qemu-system-x86_64 os.bin
When I start qemu it said: "Boot failed"