Already made a bootable ISO and launched my booting codes successfully.
but I don't know how to load my kernel and system files.
Code: Select all
org 0x00
bits 16
jmp Main
;=======================================================================
PrintString16:
lodsb
or al, al
jz _PrintString16Return
mov ah, 0x0E
int 0x10
jmp PrintString16
_PrintString16Return:
ret
Main:
cli
mov ax, 0x07C0
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
xor ax, ax
mov ss, ax
not ax
mov sp, ax
sti
mov si, StartMsg
call PrintString16
cli
hlt
;=======================================================================
StartMsg db "Hello, Bootable CD!", 13, 10, 0
times 0x800 - 2 - ($ - $$ ) db 0
dw 0xAA55
because my ISO NOT using Floppy emulation.
Is it work in my case?
or
Is there any tutorial for this problem?