flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
ASHLEY4
Try adding 32 (d) to 26 (d) = 58 (d).
stored as a word,(but only users 12bit in the fat) Code: ;----------------------------------------; Directory Entry format;----------------------------------------DIR_ENTRY STRUCdirName DB 11 DUP (?) ; 0x00dirAttr DB ? ; 0x0BdirReserved DB ? ; 0x0CdirCreate10MS DB ? ; 0x0DdirCreateTime DW ? ; 0x0EdirCreateDate DW ? ; 0x10dirAccessDate DW ? ; 0x12dirClusterHigh DW ? ; 0x14dirTime DW ? ; 0x16dirDate DW ? ; 0x18dirCluster DW ? ; 0x1AdirSize DD ? ; 0x1CDIR_ENTRY ENDS \\\\||//// (@@) ASHLEY4. Batteries not included, Some assembly required. Last edited by ASHLEY4 on 03 Dec 2004, 22:17; edited 1 time in total |
|||
![]() |
|
joachim_neu
aren't the LSN in FAT12 only 12 bits long? that's very complicated, because you've got to take them out and so on...
|
|||
![]() |
|
sz
Why should I add 32 to the offset? And another, more important question: Must I add to the LSN the number of sectors of RootDir, BootSector and FAT?
_________________ Windows was unable to detect your keyboard. Press F12 to reboot. |
|||
![]() |
|
ASHLEY4
If you take a formated floppy and put one file on the disk and you look at the root dir with a hex editer, you will see the first entry, as if you renamed or deleted that file, this is only for the first entry, just add 32 for rest.
NOTE: this is for hardcoring a file from the disk, as in you load a kernel.bin for a boot loader. The atached file as all the info you need,just add the html to the end, instead of the txt. \\\\||//// (@@) ASHLEY4. Batteries not included, Some assembly required. Last edited by ASHLEY4 on 06 Dec 2004, 17:22; edited 2 times in total |
|||
![]() |
|
sz
Now it works, thx for the help.
_________________ Windows was unable to detect your keyboard. Press F12 to reboot. |
|||
![]() |
|
Matrix
joachim_neu wrote: aren't the LSN in FAT12 only 12 bits long? that's very complicated, because you've got to take them out and so on... there are some things you have to do, but imagine if it were 11 bit fat ![]() |
|||
![]() |
|
ASHLEY4
Here: is full fat12 boot code
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.