Keyboard Shortcuts
Likes
Search
Re: Changes to Z80MC?
Hi, This is an idea for a small change to the Z80MC firmware.? I did it on mine a while ago and it helped me at the time. I had formatted my SDCARD?from windows, and had a hard time booting off of it.? I can't remember which windows, but it was probably Windows 10. (Has anyone else had this problem?) It turned out that my FAT16 format was of type SD_PART_TYPE = 0Eh. This is a slightly?modern variant of FAT16, but I think it works fine with the rest of the Z80MC disk routines. The current firmware allows SD_PART_TYPE?4 or 6, and disallows type 86h: 2306 ?32 16FF ? ? ? ? ? LD (SD_PART_TYPE), A 2309 ?FE 04 ? ? ? ? ? ? CP 4 230B ?28 09 ? ? ? ? ? ? JR ? Z, INITFAT_PGOOD 230D ?FE 06 ? ? ? ? ? ? CP 6 230F ?28 05 ? ? ? ? ? ? JR ? Z, INITFAT_PGOOD 2311 ?FE 86 ? ? ? ? ? ? CP 86h 2313 ?C2 6624 ? ? ? ? ? JP ?NZ, INITFAT_FAIL I added one more case for 0Eh, and that allowed me to boot off of the card. If this firmware change is legit/correct, and?it makes it easier for Windows users, perhaps it would be good to go in with the next firmware update. You can read more about this FAT16 version here: But I have excerpted the relevant part here: Prior to 1995, versions of DOS accessed the disk via??addressing only. When?(MS-DOS 7.0) introduced??disk access, partitions could start being physically located outside the first c. 8?GB of this disk and thereby out of the reach of the traditional CHS addressing scheme. Partitions partially or fully located beyond the CHS barrier therefore had to be hidden from non-LBA-enabled operating systems by using the new partition type? ?in the partition table instead. FAT16 partitions using this partition type are also named?FAT16X.?The only difference, compared to previous FAT16 partitions, is the fact that some CHS-related geometry entries in the BPB record, namely the number of sectors per track and the number of heads, may contain no or misleading values and should not be used.-Frank On Sun, Apr 27, 2025, 2:02?PM Lee Hart via <leeahart=[email protected]> wrote:
|