Prev: C8BF Up: Map Next: C8E8
C8DB: Utilities routine - Wait some time
Wait 182 t-states for every value on BC. Used by the routines at D871 and DAC0.
Input
BC Number of times to wait 182 t-states
C8DB PUSH BC Save BC
C8DC LD B,$0A Loop ten times
C8DE DJNZ $C8DE
C8E0 POP BC Restore BC
C8E1 DEC BC Decrement BC
C8E2 LD A,B Is BC == 0?
C8E3 OR C
C8E4 JP NZ,$C8DB Jump back if not
C8E7 RET
Prev: C8BF Up: Map Next: C8E8