Hi, I've used the following code for onecyle delays :
#pragma asm nop;//;simple delay #pragma endasm
; Stack Space for reentrant functions in the LARGE model. XBPSTACK EQU 1;0 ; set to 1 if large reentrant is used. XBPSTACKTOP EQU 300h;0FFFFH+1; set top of stack to highest location+1.
LCALL ?C0023