int 13h loading more than 18 sectors how to
Posted: Sat Jan 04, 2003 10:19 pm
how do u laod more than 18 sectors into memory at a time? This is kinda a continuation of my gateway booting problem post. some simple code would be greatly appreciated
thx
regards,
mr. xsism :-\
here is what i have so far:
|---------------Start Code segment-----------------------|
ResetFloppy:
mov ax,0x00 ; Floppy Reset BIOS Function
mov dl,[drive] ; Select floppy that was booted from
int 0x13 ; Reset the floppy drive
jc ResetFloppy ; If there was a error, try again.
mov byte [gs:0],'2'
mov byte [gs:1],0x04
LoadFloppy:
mov bx,0x1000 ; Data buffer for file = 0x00001000
mov es,bx
mov bx,0x00
mov ch,0 ; Track
mov cl,2 ; Sector 2 of floppy
mov al,22 ; to sector 24
mov ah,2 ; Function to read disk
mov dh,0 ; Head
mov dl,[drive] ; Drive #
int 0x13 ; Call BIOS read disk sectors function
jc LoadFloppy ; motor error, try again
mov edx,0x3F2 ; stop the floppy motor
mov al,0x0C
out dx,al
|-------------------------End Code segment-----------------|
regards,
mr. xsism :-\
here is what i have so far:
|---------------Start Code segment-----------------------|
ResetFloppy:
mov ax,0x00 ; Floppy Reset BIOS Function
mov dl,[drive] ; Select floppy that was booted from
int 0x13 ; Reset the floppy drive
jc ResetFloppy ; If there was a error, try again.
mov byte [gs:0],'2'
mov byte [gs:1],0x04
LoadFloppy:
mov bx,0x1000 ; Data buffer for file = 0x00001000
mov es,bx
mov bx,0x00
mov ch,0 ; Track
mov cl,2 ; Sector 2 of floppy
mov al,22 ; to sector 24
mov ah,2 ; Function to read disk
mov dh,0 ; Head
mov dl,[drive] ; Drive #
int 0x13 ; Call BIOS read disk sectors function
jc LoadFloppy ; motor error, try again
mov edx,0x3F2 ; stop the floppy motor
mov al,0x0C
out dx,al
|-------------------------End Code segment-----------------|