flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Dex4u 03 Mar 2011, 16:25
I posted a link in the other post, but its best not to load the fat32 and root dir whole in memory, as unlike fat12/16 it can be very big.
|
|||
![]() |
|
christiandy 04 Mar 2011, 05:16
wow, thx Dex4U. anw, i have tried the DexOS, that's my inspiration.
in the boot.asm u posted it use int 13 service 02h. But sometimes I see in another link it use int 13h services 42h. When do we use service 42? and anw can flash disk is translated to CHS? thanks so much. |
|||
![]() |
|
Mike Gonta 04 Mar 2011, 11:07
christiandy wrote: When do we use service 42? Hi christiandy, Any UFD 1GB and up on any PC BIOS after 2005 (and some before) can use the Int 13h extended functions. You are invited to participate in this inquiry. christiandy wrote: can flash disk is translated to CHS? UFD geometry is emulated by the BIOS. Use Int 13h function ah=8 Get Drive Parameters to obtain the geometry and convert the LBA for the call. USB Booting Secrets |
|||
![]() |
|
Dex4u 04 Mar 2011, 16:03
christiandy wrote: wow, thx Dex4U. anw, i have tried the DexOS, that's my inspiration. I like to stick to int 13h service 02h, when making a boot loader, from my test i have found int 13h services 42h can be buggy, not so much now, but on the first examples that came out. Good luck, as its a long road. |
|||
![]() |
|
christiandy 06 Mar 2011, 18:05
it's the same way to access sector on harddisk and flashdisk? Dex, i have tried your code on the post but the result is only 4x4 dots on the screen. In the test i'm using 2GB flashdiks. Anw Dex, I've changed the BPB because your BPB cannot detected as FAT32
|
|||||||||||
![]() |
|
Dex4u 06 Mar 2011, 22:57
christiandy wrote: it's the same way to access sector on harddisk and flashdisk? Dex, i have tried your code on the post but the result is only 4x4 dots on the screen. In the test i'm using 2GB flashdiks. Anw Dex, I've changed the BPB because your BPB cannot detected as FAT32 @christiandy, its not my code, it was a link to a fat32 boot loader, i new of. If i was you i would stick with fat16 for usb fobs up to 2GB. Theres a great fat12/16 boot loader called bootprog that i use. Let me know if you want a link. |
|||
![]() |
|
christiandy 07 Mar 2011, 03:24
@Dex i still want to use FAT32 because i will try to flash disk greater than 2 gigs later. Did you have tried the code i attached. I still have no idea why it can't load the kernel
|
|||
![]() |
|
egos 07 Mar 2011, 04:57
christiandy wrote: it's the same way to access sector on harddisk and flashdisk? _________________ If you have seen bad English in my words, tell me what's wrong, please. |
|||
![]() |
|
christiandy 08 Mar 2011, 18:13
yes it's same but i still don't understand my boot code not work
|
|||
![]() |
|
egos 09 Mar 2011, 10:00
For first time:
- check BPB. It is seems to me that BPB_Reserved field has size 12 bytes; - use even value for sp; - to calculate location of data area use formulae BPB_HiddenSectors32 + BPB_ReservedSectors + BPB_NumberOfFATs*BPB_SectorsPerFAT32; - don't truncate 32-bit values; - and so on. |
|||
![]() |
|
lagg070988 02 Sep 2011, 01:35
hi, my english is bad but i have this solution for this problem
|
|||||||||||
![]() |
|
lagg070988 02 Sep 2011, 01:41
comment are in spanish
![]() i'm chilean |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.