Page 1 of 1

ZX-Spectrum core: disk format detection

Posted: Thu Jun 15, 2023 2:52 pm
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.


Re: ZX-Spectrum core: disk format detection

Posted: Thu Jun 15, 2023 3:11 pm
by Flandango

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