lba to chs

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

lba to chs

Post by VolTeK »

Where can i find information on all floppy disks?

int 13h says i can only get 1 - 63 value for sectors, but fat12 says its 18 sectors per track (unless ive mis read) is that 1 - 18 per track or 0 - 17 (18 sectors) i know it says 1 - 63 but id just like to make sure.
User avatar
turdus
Member
Member
Posts: 496
Joined: Tue Feb 08, 2011 1:58 pm

Re: lba to chs

Post by turdus »

63 is the maximum number of sectors to read with one BIOS call. If you want to read a full track a time, use 18. What's the problem?
azblue
Member
Member
Posts: 147
Joined: Sat Feb 27, 2010 8:55 pm

Re: lba to chs

Post by azblue »

Start at 1, 1-18
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: lba to chs

Post by Combuster »

There need not be a floppy disk at the receiving end when you call int 13h. An eltorito cd or usb key works too.

That said, reading across floppy tracks is asking for portability issues.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply