Bootloader: Reading sectors from a floppy
Posted: Mon Sep 06, 2004 4:34 pm
Anybody know where I can get some information on how to do this?
The Place to Start for Operating System Developers
http://f.osdev.org/
Code: Select all
mov ax, 1000h ; ES:BX = 1000:0000
mov es, ax ;
mov bx, 0 ;
mov ah, 2 ; Load disk data to ES:BX
mov al, 5 ; Load 5 sectors
mov ch, 0 ; Cylinder=0
mov cl, 2 ; Sector=2
mov dh, 0 ; Head=0
mov dl, 0 ; Drive=0
int 13h ; Read!