Delay_b ($F57A)

This routines loops until the B register value has decremented below zero. Cycle counts do not include timing of the instructions used to call the delay routines.

5*B + 10 cycles

 

ENTRY:

B-reg = delay count

 

EXIT:

B-reg = $FF

 

Source