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
Could you tell me why activating the .SRC generation option results in the error? Is the procedure I've gone through for making my function reentrant correct? I don't know. I haven't seen the source code and Ihaven't seen the procedure. So, I can't really comment on either. IF you want help with that kind of stuff, maybe you should contact technical support. Jon