Commit graph

7 commits

Author SHA1 Message Date
Alexander Martinelle
9b38fc6d32 Early bail-out of DriveLoopReadNoFlux
A couple of small optimizations that shouldn't make a difference but do such as: Addressing tracks as a single array.  Caching a single byte instead of re-reading the array. (Note that caching 32bits did not improve but actually worsen things). Harsher interrupt disabling. Whitespace changes in main...

Plus, early bail out from DriveLoopReadNoFlux.
2019-09-10 23:14:34 +02:00
Alexander Martinelle
8875c55c25 Fixed incorrect cycle calculation and removed floats entirely in drive loop
Replace incorrect cyclesLeft calculation with faster non-floating point error calculator. Replaced modulo calculation with faster size comparison.
2019-09-07 14:27:32 +02:00
Alexander Martinelle
2d538e4975 Some code restructing and removed writeshiftregister use.
Moved the branching to Update.
writeShiftRegister renamed.
Fixed typo in main drive read.
Reorganised SetInput call try to trigger conditionals.
2019-09-04 22:06:21 +02:00
Alexander Martinelle
3978ef2165 1541 Drive speed improvements
Specialized drive read loops for the most common cases, triggers a vast speed improvement in some scenarios. Improved saving speed. Removed some more code that's not really required right now.
2019-09-03 23:31:46 +02:00
Alexander Martinelle
d39c734151 Experimental Pi Zero 1541 loading support.
Experimental Pi Zero 1541 loading support. Disables screens, keyboard, uart, interrupts. Restructured 1541 emulation loop to avoid button polling. Drive reading code optimized.
2019-08-31 13:26:23 +02:00
Stephen White
457cbafade Inlined some of the drive functions. 2018-06-03 17:45:17 +10:00
Jakub Czekański
ebc9d6359b moved sources to src/ dir, clean with explicit defined files 2018-05-22 19:04:38 +02:00
Renamed from Drive.h (Browse further)