File system help
Re:File system help
@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.
But if you find some let me know as need to add that code to my floppy driver soon.
Re:File system help
yes, but i asked help thinking that someone could write some piece of code and post them here.
Re:File system help
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.
click on the "sources" link.
But you will not understand it and would be better off, starting at the beginning, and working through it.
Re:File system help
My plan was to read some source and understand it.
After understood the create-new-file process, i'll write my own functions.
After understood the create-new-file process, i'll write my own functions.
Re:File system help
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.
But what suite one person, may not suite another.
Re:File system help
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.
So, if anyone will help me, please say it now and i'll stop this post and continue searching on google.
Re:File system help
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.
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.
Re:File system help
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.
Re:File system help
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.
I learned fat12, the fat, the root dir, the clusters, but i don't know how to start to apply it.
Re:File system help
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.
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.
Re:File system help
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.
Re:File system help
you can make your os code compatible with the pieces of code you want to use ;D
Re:File system help
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.
Learn to write your own code. Post something about that in the General Programming forum if you are seriously interested.