<story><title>Freespin: C64 demo running on 1541 floppy drive</title><url>http://www.quiss.org/freespin/</url></story><parent_chain></parent_chain><comment><author>stevep98</author><text>The processor in the 1541 was identical to the c64… 6502. (Or 6510C)&lt;p&gt;The serial link between them was notoriously slow. I studied them extensively as a teenager, and had reams of disassembly printed out in fanfold dot matrix, with my own scribbles.  This is how I learned 80% of my computing skill set.&lt;p&gt;The signaling between the drive and computer used a clock line and a data line. When reading from the drive, the drive would set the data bit then invert the clock. The 
CPU  would be polling the clock line, and when it changed, it would read the data bit. There wasn’t any fancy hardware like DMA.  It was basically two cpus connected to get her with a couple of I&amp;#x2F;O pins.&lt;p&gt;I can’t remember where I saw it, but there was an extremely fast driver going around, and sure enough I disassembled it to find out what they were doing.&lt;p&gt;Before each 256-byte sector was transferred there was a loop which synchronized the cpus in the drive and host computer, down the the clock cycle.  Then they used both clock line and data line to blast all the data, two bits at a time down the lines.  The  cpus didn’t wait for any clock to change, they just read the data as fast as possible. Wrapped with a bit of error detection to top it off.. in the end it was about a 10x speedup with the same hardware…. Which at the time was totally mind blowing</text></comment>
<story><title>Freespin: C64 demo running on 1541 floppy drive</title><url>http://www.quiss.org/freespin/</url></story><parent_chain></parent_chain><comment><author>peter_d_sherman</author><text>&amp;gt;&amp;quot;Freespin is a Commodore 1541 demo, released in 2021. It runs on the Commodore floppy drive. It is is the first demo on this device. [&lt;i&gt;Without&lt;/i&gt; the C64 attached!]&lt;p&gt;[...]&lt;p&gt;Freespin generates sound&amp;#x2F;music using the floppy drive mechanic (in particular, the stepper motor responsible for moving the head to the right track).&lt;p&gt;&lt;i&gt;Video is generated through the [1541&amp;#x27;s] serial bus.&lt;/i&gt;&amp;quot;&lt;p&gt;PDS: &lt;i&gt;Absolutely amazing!&lt;/i&gt;&lt;p&gt;I have never seen this done before!&lt;p&gt;Related:&lt;p&gt;&amp;quot;How freespin bit bangs the video signal&amp;quot;&lt;p&gt;&lt;a href=&quot;http:&amp;#x2F;&amp;#x2F;www.quiss.org&amp;#x2F;freespin&amp;#x2F;raster.html&quot; rel=&quot;nofollow&quot;&gt;http:&amp;#x2F;&amp;#x2F;www.quiss.org&amp;#x2F;freespin&amp;#x2F;raster.html&lt;/a&gt;</text></comment>