| Currah μSpeech | Routines |
| Prev: 02EB | Up: Map | Next: 0354 |
|
Used by the routine at HandleInterrupt.
Add one to two addresses DE bytes apart. Used to tick both keyboard-state timers.
|
||||||||||
| IncrementPair | 034B | PUSH HL | Stash the first address on the stack. | |||||||
| 034C | LD B,$02 | Set the update counter to 02. | ||||||||
| IncrementPair_Loop | 034E | INC (HL) | Add one to this timer and move to the next. | |||||||
| 034F | ADD HL,DE | |||||||||
| 0350 | DJNZ IncrementPair_Loop | Decrease the counter and loop back to IncrementPair_Loop until both timers are updated. | ||||||||
| 0352 | POP HL | Restore the first address from the stack. | ||||||||
| 0353 | RET | Return. | ||||||||
| Prev: 02EB | Up: Map | Next: 0354 |