|
|
|
|
|
by RetroTechie
779 days ago
|
|
Once made a tape-loading like pattern, and tried to get it as stable (not moving up or down on screen) as possible. Managed to produce a program where with key presses, you could change delay in the loop in +/- 1 clockcycle increments. Mind you: fastest Z80 opcodes take 4 cycles. How then? Well, there's also opcodes that take 5 cycles. Or 6. Or 7. And 8=2*4, 9=4+5, etc. Program just automated the insertion/removal of those in the inner loop. Of course I had to pick instructions that didn't mess with some Z80 registers. Great fun (& educational) figuring out stuff like that. Fun times... |
|
I pretty much knew all the clock cycle counts for the instructions as a teenager, and you would code assembler with them always in mind.