1 ;-------------------------------------------------
\r
4 .ref usRegTest1Counter
\r
9 ; Fill each general purpose register with a known value.
\r
29 ; Test each general purpose register to check that it still contains the
\r
30 ; expected known value, jumping to vRegTest1Error if any register contains
\r
31 ; an unexpected value.
\r
61 ; This task is still running without jumping to vRegTest1Error, so increment
\r
62 ; the loop counter so the check task knows the task is running error free.
\r
63 stmfd sp!, { r0-r1 }
\r
68 ldmfd sp!, { r0-r1 }
\r
70 ; Loop again, performing the same tests.
\r
73 count1 .word usRegTest1Counter
\r
79 ;-------------------------------------------------
\r
82 .ref usRegTest2Counter
\r
87 ; Fill each general purpose register with a known value.
\r
92 mov r4, #0x44000000
\r
98 mov r10, #0xAA000000
\r
99 mov r11, #0xBB000000
\r
100 mov r12, #0xCC000000
\r
101 mov r14, #0xEE000000
\r
107 ; Test each general purpose register to check that it still contains the
\r
108 ; expected known value, jumping to vRegTest1Error if any register contains
\r
109 ; an unexpected value.
\r
110 cmp r0, #0xFF000000
\r
112 cmp r1, #0x11000000
\r
114 cmp r2, #0x22000000
\r
116 cmp r3, #0x33000000
\r
118 cmp r4, #0x44000000
\r
120 cmp r5, #0x55000000
\r
122 cmp r6, #0x66000000
\r
124 cmp r7, #0x77000000
\r
126 cmp r8, #0x88000000
\r
128 cmp r9, #0x99000000
\r
130 cmp r10, #0xAA000000
\r
132 cmp r11, #0xBB000000
\r
134 cmp r12, #0xCC000000
\r
136 cmp r14, #0xEE000000
\r
139 ; This task is still running without jumping to vRegTest1Error, so increment
\r
140 ; the loop counter so the check task knows the task is running error free.
\r
141 stmfd sp!, { r0-r1 }
\r
146 ldmfd sp!, { r0-r1 }
\r
148 ; Loop again, performing the same tests.
\r
151 count2 .word usRegTest2Counter
\r
156 ;-------------------------------------------------
\r