File system help

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.
Dex4u

Re:File system help

Post by Dex4u »

@SpiglerG, Your more likely to find rocking horse **** ;D, there just is no example in asm, of writing a file to a fat12 floppy.
But if you find some let me know as need to add that code to my floppy driver soon.
SpiglerG

Re:File system help

Post by SpiglerG »

yes, but i asked help thinking that someone could write some piece of code and post them here.
Dex4u

Re:File system help

Post by Dex4u »

Here is a example of why that will not help you, in this link is all the asm code you need to write to floppy http://world.std.com/~mikep/rxdos-page.html
click on the "sources" link.

But you will not understand it and would be better off, starting at the beginning, and working through it.
SpiglerG

Re:File system help

Post by SpiglerG »

My plan was to read some source and understand it.
After understood the create-new-file process, i'll write my own functions.
Dex4u

Re:File system help

Post by Dex4u »

The best way i find is to get has much info eg: doc etc, and beak the code i need in to small bits and work on writing enough small bits to test it, if they work move on to adding more, if they do not work, that is the time, i look at other peoples code to see if i can see a problem.

But what suite one person, may not suite another.
SpiglerG

Re:File system help

Post by SpiglerG »

Ok. But i tried to write source after read docs. It doesn't work.
So, if anyone will help me, please say it now and i'll stop this post and continue searching on google.
Kim

Re:File system help

Post by Kim »

You could try writing an Windows/Linux tool that reads/writes files to an FAT image on disk. So you just map the image in mem en work on it there and use the host os api to log information.
And don't have to worry of bugs in floppy/harddisk driver or other kernel code. And have full debugging options, to trace bugs in your FAT reading/writing code.
SpiglerG

Re:File system help

Post by SpiglerG »

I want that my os has incorporated the fat12 filesystem.
Kim

Re:File system help

Post by Kim »

I know, but its just thats its more easy this way to learn how FAT12 works. Without to worry about other stuff that could be rong in your kernel. After you found out how FAT12 works you could use the information you learned to implent it in your kernel.
SpiglerG

Re:File system help

Post by SpiglerG »

The only thing i ask is code.
I learned fat12, the fat, the root dir, the clusters, but i don't know how to start to apply it.
Kim

Re:File system help

Post by Kim »

Ever looked at some other OSes, like linux.
Search for some old version of linux if you want an example of how they did it then.

Edit: i forgot you needed asm code, you could compile the c code to an object and disasm it.

Or look at http://www.menuetos.org/ or some other asm only os.
SpiglerG

Re:File system help

Post by SpiglerG »

I looked to other little asm-written oses, but they mostly use their own interrupts, so i asked here for PIECIES of code, and not implemented code.
Poseidon

Re:File system help

Post by Poseidon »

you can make your os code compatible with the pieces of code you want to use ;D
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:File system help

Post by Candy »

This thread is not useful anymore, all it's become is a code requesting thread. Don't ask people to write your code for you. If you cannot write your own code, you are not going to contribute anything or do anything on your own.

Learn to write your own code. Post something about that in the General Programming forum if you are seriously interested.
Post Reply