hi.
i followed this instruction to build my bootloader:
http://www.codeproject.com/Articles/28067/Boot-Into-Your-Own-Hello-World-Application
but the thing i want to do is that in the bootloader i want to list(show) the files and the folders in my C drive(or any other drive)(without any menu or user input just show)
i searched a lot and found that one of the bios intrrupts(0x13) can help me do this but because i'm not really familiar with the assembly language i'm stuck now.
is anyone know how to do this so he can help about it?
thanks
this is my code so far(notice that it only shows a little message on the screen not what i want,i want to change it):
[BITS 16] [ORG 0x0000]
cli
mov ax, 0x07C0
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ax, 0x0000
mov ss, ax
mov sp, 0xFFFF
sti
mov si,msgHello
call DisplayMessage
mov si, msgEnd
call DisplayMessage
hlt
DisplayMessage:
lodsb
or al, al
jz .DONE
mov ah, 0x0E
mov bh, 0x00
mov bl, 0x07
int 0x10
jmp DisplayMessage
.DONE:
ret
msgHello db 0x0D, 0x0A, "Hello World", 0x0D, 0x0A, 0x00
msgEnd db 0x0D, 0x0A, "That's all folks!!!", 0x0D, 0x0A, 0x00
TIMES 510-($-$$) DB 0
DW 0xAA55