Question
Question to COSMIC compiler experts
Posted on November 29, 2016 at 21:19
Hello, I briefly.
How to implement critical section compatible with __monitor or __critical directives in other compilers? And how to pass the offset of stack of the local variables into inline assembler directives? And further. Who can explain it?...
112 ; 22 saved_cc = _asm (''push cc \n'' ''pop a \n''); 115 0006 8a push cc 116 0007 84 pop a 118 0008 01 rrwa x,a 119 0009 6b05 ld (OFST+0,sp),a 121 ; 24 backup = _current_task_; 123 000b ce0000 ldw x,__current_task_ ... Thanks in advance. #cosmic-critical-monitor #cosmic-critical