flat assembler
Message board for the users of flat assembler.

Index > OS Construction > FAT32

Author
Thread Post new topic Reply to topic
Richy



Joined: 20 Aug 2014
Posts: 10
Richy
I've been struggling with writing FAT32 functions for over a week now. I want something simple: following pointers in the allocation table and reading the clusters to memory, in assembly and compact enough to run in a stage-1 bootloader. But every bug I solve seems to create two more, and while FAT12 is pretty popular with OS developers I find surprisingly little online about using FAT32.

Does anyone here have experience with it? I could use help, or even "cheat" and look at someone's complete and working code.
Post 03 Sep 2014, 14:15
View user's profile Send private message Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Matrix
Richy wrote:
I've been struggling with writing FAT32 functions for over a week now. I want something simple: following pointers in the allocation table and reading the clusters to memory, in assembly and compact enough to run in a stage-1 bootloader. But every bug I solve seems to create two more, and while FAT12 is pretty popular with OS developers I find surprisingly little online about using FAT32.

Does anyone here have experience with it? I could use help, or even "cheat" and look at someone's complete and working code.


ftp://ftp.kernel.org/pub/linux/kernel/v3.x/
pick one, for example linux-3.14.17.tar.xz extract, and look at fs directory Wink
i'd go for ext2fs, not fat32, but whatever you want
Post 03 Sep 2014, 14:25
View user's profile Send private message Visit poster's website Reply with quote
Richy



Joined: 20 Aug 2014
Posts: 10
Richy
Matrix wrote:
Richy wrote:
I've been struggling with writing FAT32 functions for over a week now. I want something simple: following pointers in the allocation table and reading the clusters to memory, in assembly and compact enough to run in a stage-1 bootloader. But every bug I solve seems to create two more, and while FAT12 is pretty popular with OS developers I find surprisingly little online about using FAT32.

Does anyone here have experience with it? I could use help, or even "cheat" and look at someone's complete and working code.


ftp://ftp.kernel.org/pub/linux/kernel/v3.x/
pick one, for example linux-3.14.17.tar.xz extract, and look at fs directory Wink
i'd go for ext2fs, not fat32, but whatever you want


Thanks, but this code is in C, not Assembly. It is also a lot more complex and larger than anything I could use in a stage-1 bootloader.
Post 03 Sep 2014, 15:00
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
Post 05 Sep 2014, 17:50
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.