Hello.
Thank you for your help!
I use your code to replace the old code,CW10.7 prompt compile errors.I will change the format of your code to compile:
VSTD_DEF_FUNC_API(VSTD_NONE, void, CODE) VStdLL_GlobalInterruptDisable(VSTD_DEF_P2VAR_PARA(VSTD_NONE, tVStdIrqStateType, AUTOMATIC, VAR_NEAR) pOldState) VSTD_API_2
{
__asm(ld x,pOldState);
__asm(tfr ccl,d0);
__asm(sei);
__asm(st d0,(0,x));
}
VSTD_DEF_FUNC_API(VSTD_NONE, void, CODE) VStdLL_GlobalInterruptRestore(tVStdIrqStateType nOldState) VSTD_API_2
{
__asm(ld d0,nOldState);
__asm(tfr d0,ccl);
}
The compiled without error!
But at the time of debugging problems:


I hope you can help me again,Thank you very much!