IIRC, the Delay function call will set A to zero, so you have to push AF/pop AF before/after it so it works. Andreas