![]() |
Routines |
| Prev: B8DA | Up: Map | Next: B8F2 |
|
Call PlaySquareWave, using B as the repeat count.
|
||||||||||
|
Play PlaySquareWave using B as the repeat count.
|
||||||||||
| PlayRepeatedTone | B8E8 | LD D,B | Copy B into the repeat count. | |||||||
| B8E9 | PUSH BC | Stash BC on the stack. | ||||||||
| PlayRepeatedTone_Loop | B8EA | CALL PlaySquareWave | Call PlaySquareWave. | |||||||
| B8ED | DEC D | Decrease the repeat count by one. | ||||||||
| B8EE | JR NZ,PlayRepeatedTone_Loop | Jump back to PlayRepeatedTone_Loop until it is zero. | ||||||||
| B8F0 | POP BC | Restore BC from the stack. | ||||||||
| B8F1 | RET | Return. | ||||||||
| Prev: B8DA | Up: Map | Next: B8F2 |