[hatari-devel] Better disk change detection

Nicolas Pomarède npomarede at corp.free.fr
Sun Nov 6 13:43:56 CET 2011


Hello

Using TOS 1.02 as a reference, I added better support for detecting when 
a disk is inserted or ejected.

Basically, this is done by forcing the Write Protect signal to either 0 
or 1 during a fixed number of VBLs to simulate the transition between 
the insertion and the removal of a floppy (see floppy.c and fdc.c if 
you're interested in more details).

I tested it with Pompey Pirate 51, when the insertion of PP23 was not 
detected if you didn't return to emulation between ejecting or inserting 
the new disk image. You can now change the disk image in one step and 
return to emulation directly.

If you know any game/program that required a disk change and had problem 
with it, please test it now and reports your results.

Nicolas



More information about the hatari-devel mailing list