ZX-Spectrum core: disk format detection

Discussion of developmental aspects of the MiSTer Project.
User avatar
JamesH
Posts: 56
Joined: Sat Dec 26, 2020 11:41 am
Has thanked: 5 times
Been thanked: 15 times

ZX-Spectrum core: disk format detection

Unread post by JamesH »

Sorry to bother, just is pretty much useless at the moment, but I was wondering if someone can point me to the code responsible for the disk image format detection in the ZX-Spectrum core? The part I am unable to understand is how the core distinguishes IMG and MGT formats. There is bit of background here.

There is something that looks like TR-DOS related disk handling in the main MiSTer binary, which is probably irrelevant, and ZX-Spectrum's wd1792.sv has potentially relevant comment "0 = Track-Side-Sector, 1 - Side-Track-Sector". The latter looks promising, I am unable to understand how exactly that is supposed to work. Any help appreciated.

Thanks.

Flandango
Core Developer
Posts: 404
Joined: Wed May 26, 2021 9:35 pm
Has thanked: 43 times
Been thanked: 343 times

Re: ZX-Spectrum core: disk format detection

Unread post by Flandango »

Take a look at rtl/u765.sv and see if that has what you are looking for.

Post Reply