Fat12 routines

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
phenomenic

Fat12 routines

Post by phenomenic »

I'm looking for fat12 rotines! (nasm code plz)
Guest

RE:Fat12 routines

Post by Guest »

>On 2002-02-13 05:24:50, phenomenic wrote:
>I'm looking for fat12 rotines! (nasm code plz)

Doesn't anybody look at the LINKS on this page!?
There's no shortage of fat12 drivers out there,
I'm sure you can find some, or (perish the
thought!) write you own!
Guest

RE:Fat12 routines

Post by Guest »

>On 2002-02-13 05:24:50, phenomenic wrote:
>I'm looking for fat12 rotines! (nasm code plz)

Not as easy as it sounds; most FAT
implementations are actually in C these days,
while many assmbly FAT samples predate NASM.
I found a few things that may help, though:

http://www.ansanest.com/josh/boot3.htm
- a boot loader that loads in a FAT and directory.

http://www.cs.plu.edu/pub/faculty/csce3 ... /home.html
- sample code from a class on ASM programming,
with a few FAT12 examples

Also, here's a detailed description of FAT12, in
case you decide to something wacky, like, oh,
code a version of it yourself.

http://www.maverick.subnet.dk/FileSyste ... ystem.html

FAT12 itself is fairly trivial; the hard part is
the read/write routines underlying it. My
previous posting on the subject gave some goosd
advice about actually doing this.
Guest

RE:Fat12 routines

Post by Guest »

>On 2002-02-13 05:24:50, phenomenic wrote:
>I'm looking for fat12 rotines! (nasm code plz)

Not as easy as it sounds; most FAT
implementations are actually in C these days,
while many assmbly FAT samples predate NASM.
I found a few things that may help, though:

http://www.ansanest.com/josh/boot3.htm
- a boot loader that loads in a FAT and directory.

http://www.cs.plu.edu/pub/faculty/csce3 ... /home.html
- sample code from a class on ASM programming,
with a few FAT12 examples

Also, here's a detailed description of FAT12, in
case you decide to something wacky, like, oh,
code a version of it yourself.

http://www.maverick.subnet.dk/FileSyste ... ystem.html

FAT12 itself is fairly trivial; the hard part is
the read/write routines underlying it. My
previous posting on the subject gave some goosd
advice about actually doing this.
Schol-R-LEA

RE:Fat12 routines

Post by Schol-R-LEA »

>On 2002-02-16 23:29:11, Anonymous wrote:
>>On 2002-02-13 05:24:50, phenomenic wrote:
>>I'm looking for fat12 rotines! (nasm code plz)
>
>Not as easy as it sounds; most FAT
>implementations are actually in C these days,
>while many assmbly FAT samples predate NASM.
>I found a few things that may help, though:
>
>http://www.ansanest.com/josh/boot3.htm
>- a boot loader that loads in a FAT and directory.
>
>http://www.cs.plu.edu/pub/faculty/csce380/examples/home.html
>- sample code from a class on ASM programming,
>with a few FAT12 examples

Oops. Actually, this code is in MASM, not NASM, which is just what I warned you would be the case most of the time. Also, on DOS and BIOS calls, which makes it useless for your puropes. My mistake, please ignore.

In any case, as I hinted in my last posting, no
off-the-shelf code can possibly ever help you
with an OS project; the code has to work with the
rest of what you have written. While these may
help you understand how to write a floppy driver,
you'll still have write one of your own. There just in no way around that.
Alexei A. Frounze

RE:Fat12 routines

Post by Alexei A. Frounze »

get os.zip from my site. the bootsector from
boot12 subdir contains complete NASM code
for reading files from FAT12 floppies.

Good Luck
Alexei A. Frounze
http://alexfru.narod.ru
http://www.members.tripod.com/protected_mode/
Post Reply