]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/RL78_RL78G13_Promo_Board_IAR/RegTest.s87
Update version numbers in preparation for new release.
[freertos] / FreeRTOS / Demo / RL78_RL78G13_Promo_Board_IAR / RegTest.s87
index 56b3997909de0785cb80c213ce65ef6398076a99..dbb20bfb73471bab5dd92b59b82e10df448b88a5 100644 (file)
@@ -1,6 +1,6 @@
 ;/*\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
@@ -84,7 +85,7 @@
 ;\r
 ;------------------------------------------------------------------------------\r
     RSEG CODE:CODE\r
-vRegTest1Task:\r
+vRegTest1:\r
 \r
        ; First fill the registers.\r
        MOVW    AX, #0x1122\r
@@ -92,13 +93,13 @@ vRegTest1Task:
        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
@@ -114,18 +115,18 @@ loop1:
 \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
@@ -145,9 +146,6 @@ loop1:
 \r
 #endif\r
 \r
-       ; Indicate that this task is still cycling.\r
-       INCW    usRegTest1LoopCounter\r
-\r
        MOVW    AX, #0x1122\r
        BR              loop1\r
 \r
@@ -165,7 +163,7 @@ loop1:
 ;\r
 ;------------------------------------------------------------------------------\r
     RSEG CODE:CODE\r
-vRegTest2Task:\r
+vRegTest2:\r
 \r
        MOVW    AX, #0x99aa\r
        MOVW    BC, #0xbbcc\r
@@ -175,23 +173,23 @@ vRegTest2Task:
 \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
@@ -209,9 +207,6 @@ loop2:
 \r
 #endif\r
 \r
-       ; Indicate that this task is still cycling.\r
-       INCW    usRegTest2LoopCounter\r
-\r
        MOVW    AX, #0x99aa\r
        BR              loop2\r
 \r