3 ms·
My 6502 is a little rusty but wasn't it always faster to decrement the index? Don't compare to 10 each time, just decrement to zero. You save one instruction,
by melling 12y ago
My 6502 is a little rusty but wasn't it always faster to decrement the index? Don't compare to 10 each time, just decrement to zero. You save one instruction, which was probably a few clock cycles.
- Macsenour 12y agoYes, and never forget the BMI opcode.
- mattgodbolt 12y agoAbsolutely yes: I was just showing an example, not the most optimal code :)