saving a file in fat12
Posted: Sat Jul 10, 2010 7:14 pm
hello all , im trying to save a file in fat12 structure . the loading procedure is given in the tutorial but the saving procedure is not .
i myself came up with some sort of algorithm which im not sure of its correctness yet .
can you verify its integrity ?
you know , i dont know exactly how to go about it . !
i mean when we want to load a value from a cluster , we check to see if its even or odd ( the cluster i mean), if its even we shift the value 4 times to right and if its odd we and it with 0000111111111111b( meaning we want the low twelve bits) .
so do i have to consider this while saving too ? i mean should i do the same thing while saving or i should do it reversely ! i mean for even clusters instead of shr , i actually do shl, 4 times ( so that when loading when we shr 4 times , we get the actual value )
and for 'and'ing i dont know !
can anyone help me on this?
am i right so far?
can some one please give me the procedure of saving file in fat12 in Assembly ?
Thankyou in advance
i myself came up with some sort of algorithm which im not sure of its correctness yet .
can you verify its integrity ?
you know , i dont know exactly how to go about it . !
i mean when we want to load a value from a cluster , we check to see if its even or odd ( the cluster i mean), if its even we shift the value 4 times to right and if its odd we and it with 0000111111111111b( meaning we want the low twelve bits) .
so do i have to consider this while saving too ? i mean should i do the same thing while saving or i should do it reversely ! i mean for even clusters instead of shr , i actually do shl, 4 times ( so that when loading when we shr 4 times , we get the actual value )
and for 'and'ing i dont know !
can anyone help me on this?
am i right so far?
can some one please give me the procedure of saving file in fat12 in Assembly ?
Thankyou in advance