I've written a simple bootloader using emu8086:
Code: Select all
#make_boot#
org 7c00h
mov al, 'a'
mov ah, 0eh
int 10h
mov ah, 0x02h
mov al, 0x01h
mov ch, 0x00h
mov cl, 0x02h
mov dh, 0x00h
mov dl, 0x00h
mov bx, 0x2000h
mov es, bx
mov bx, 0x0000h
int 0x13h
mov ax, 0x2000h
mov ds, ax
jmp 0x2000:0x00
Code: Select all
mov al, 'a'
mov ah, 0eh
int 10h
mov al, 'b'
mov ah, 0eh
int 10h
mov al, 'c'
mov ah, 0eh
int 10h
If anyone can answer it would be greatly appreciated.
Other information:
-The bootloader is written to sector 1
-The kernel is written to sector 2