POP AR7
POP AR6
POP AR5
POP AR4
POP AR3
POP AR2
POP AR1
POP AR0
POP PSW
POP DPL
POP DPH
POP B
POP ACC
RETI
?ò??uCOS???ù??????????±????????????????ò?????????è?????????????é??????????±??¤??
?????????é???????¤??????c51?????????¨×??????????ò??c51±à???÷??°?±???????????????
?????ò????????????
2??uCOS C51?????????±????????×÷??
????????????????????????????????????????????????????
±??¤Task1??CPU?????÷?? ?×????CPU?????÷°?????????Task1??????????????????Task1????
????????Task1??????????
SP???????C_XBP = Task2 ?????????????????·??
????Task2??CPU?????÷????Task2???????????????????????????????????ó????Task2??????
????????CPU?????÷????
??????·?·¨?????à????????×???uCOS?????????????í??????????
#include "ucos_ii.h"
4??OS_CPU.H????????
typedef unsigned char BOOLEAN;
typedef unsigned char INT8U;
typedef signed char INT8S;
typedef unsigned int INT16U;
typedef signed int INT16S;
typedef unsigned long INT32U;
typedef signed long INT32S;
typedef float FP32;
typedef unsigned char OS_STK;
#define BYTE INT8S
#define UBYTE INT8U
#define WORD INT16S
#define UWORD INT16U
#define LONG INT32S
#define ULONG INT32U
;******************************************************************
; PUBLIC and EXTERNAL REFERENCES
;******************************************************************