i followed this instruction to build my bootloader:
http://www.codeproject.com/Articles/280 ... pplication
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):
Code: Select all
[BITS 16]
[ORG 0x0000]
; code located at 0000:7C00, adjust segment registers
cli
mov ax, 0x07C0
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
; create stack
mov ax, 0x0000
mov ss, ax
mov sp, 0xFFFF
sti
; post message
mov si,msgHello
call DisplayMessage
mov si, msgEnd
call DisplayMessage
hlt
; Display Message
DisplayMessage:
lodsb ; load next character
or al, al ; test for NUL character
jz .DONE
mov ah, 0x0E ; BIOS teletype
mov bh, 0x00 ; display page 0
mov bl, 0x07 ; text attribute
int 0x10 ; invoke BIOS
jmp DisplayMessage
.DONE:
ret
; data section
msgHello db 0x0D, 0x0A, "Hello World", 0x0D, 0x0A, 0x00
msgEnd db 0x0D, 0x0A, "That's all folks!!!", 0x0D, 0x0A, 0x00
;ASM Signature
TIMES 510-($-$$) DB 0
DW 0xAA55