3 ms·
Adding in a 100k iteration or so busyloop to the beginning of the food segment should do the trick and only add a few bytes. You could do something fancy with t
by gaogao 2y ago
Adding in a 100k iteration or so busyloop to the beginning of the food segment should do the trick and only add a few bytes. You could do something fancy with the clock interrupt, which is a bit more portable and stable, but might cost a few more bytes.
- rep_lodsb 2y agoCould add a single byte 'hlt' instruction, assuming interrupts are enabled. This would delay until the next timer tick (55ms) or key press/release.