;/*\r
-; FreeRTOS V7.4.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
-;\r
+; FreeRTOS V8.2.2 - Copyright (C) 2015 Real Time Engineers Ltd.\r
+; \r
;\r
; ***************************************************************************\r
; * *\r
\r
;------------------------------------------------------------------------------\r
\r
+#if __CORE__ != __RL78_1__\r
+ #error "This file is only for RL78 Devices"\r
+#endif\r
\r
; Functions implemented in this file\r
;------------------------------------------------------------------------------\r
\r
- PUBLIC vRegTest1Task\r
- PUBLIC vRegTest2Task\r
+ PUBLIC vRegTest1\r
+ PUBLIC vRegTest2\r
\r
-; Functions and variables used by this file\r
+; Functions used by this file\r
;------------------------------------------------------------------------------\r
EXTERN vRegTestError\r
- EXTERN usRegTest1LoopCounter\r
- EXTERN usRegTest2LoopCounter\r
\r
;------------------------------------------------------------------------------\r
; Fill all the registers with known values, then check that the registers\r
;\r
;------------------------------------------------------------------------------\r
RSEG CODE:CODE\r
-vRegTest1Task:\r
+vRegTest1:\r
\r
; First fill the registers.\r
MOVW AX, #0x1122\r
MOVW DE, #0x5566\r
MOVW HL, #0x7788\r
MOV CS, #0x01\r
-\r
+ \r
#if __DATA_MODEL__ == __DATA_MODEL_FAR__\r
\r
; ES is not saved or restored when using the near memory model so only\r
; test it when using the far model.\r
MOV ES, #0x02\r
-\r
+ \r
#endif\r
\r
loop1:\r
\r
; Jump over the branch to vRegTestError() if the register contained the\r
; expected value - otherwise flag an error by executing vRegTestError().\r
- BR vRegTestError\r
+ BR vRegTestError \r
\r
; Repeat for all the registers.\r
MOVW AX, BC\r
CMPW AX, #0x3344\r
BZ +5\r
- BR vRegTestError\r
+ BR vRegTestError \r
MOVW AX, DE\r
CMPW AX, #0x5566\r
BZ +5\r
- BR vRegTestError\r
- MOVW AX, HL\r
+ BR vRegTestError \r
+ MOVW AX, HL \r
CMPW AX, #0x7788\r
BZ +5\r
BR vRegTestError\r
\r
#endif\r
\r
- ; Indicate that this task is still cycling.\r
- INCW usRegTest1LoopCounter\r
-\r
MOVW AX, #0x1122\r
BR loop1\r
\r
;\r
;------------------------------------------------------------------------------\r
RSEG CODE:CODE\r
-vRegTest2Task:\r
+vRegTest2:\r
\r
MOVW AX, #0x99aa\r
MOVW BC, #0xbbcc\r
\r
#if __DATA_MODEL__ == __DATA_MODEL_FAR__\r
\r
- MOV ES, #0x04\r
+ MOV ES, #0x04 \r
\r
#endif\r
\r
loop2:\r
CMPW AX, #0x99aa\r
BZ +5\r
- BR vRegTestError\r
+ BR vRegTestError \r
MOVW AX, BC\r
CMPW AX, #0xbbcc\r
BZ +5\r
- BR vRegTestError\r
+ BR vRegTestError \r
MOVW AX, DE\r
CMPW AX, #0xddee\r
BZ +5\r
- BR vRegTestError\r
- MOVW AX, HL\r
+ BR vRegTestError \r
+ MOVW AX, HL \r
CMPW AX, #0xff12\r
BZ +5\r
BR vRegTestError\r
\r
#endif\r
\r
- ; Indicate that this task is still cycling.\r
- INCW usRegTest2LoopCounter\r
-\r
MOVW AX, #0x99aa\r
BR loop2\r
\r