DLY - n milliseconds delay

Syntax:

CALL 4038H
Input:

BC = number of milliseconds.

Exit:

none

Registers used:

AF, BC

Error handling:

none

This routine causes a delay whose duration in milliseconds is determined by the entry in the register pair BC.

Example:

DI                  ; disable interrupts
LD BC,1000          ; 1 sec delay
CALL 4038H
EI                  ; enable interrupts again
...

Causes a delay of one second.