- /* Sanity check - did we receive the parameter expected? */\r
- if( pvParameters != &ulRegTest2Counter )\r
- {\r
- /* Change here so the check task can detect that an error occurred. */\r
- for( ;; )\r
- {\r
- }\r
- }\r
-\r
- /* Set all the registers to known values, then check that each retains its\r
- expected value - as described at the top of this file. If an error is\r
- found then the loop counter will no longer be incremented allowing the check\r
- task to recognise the error. */\r
- asm volatile ( "reg_test_2_start: \n\t"\r
- " moveq #10, d0 \n\t"\r
- " moveq #20, d1 \n\t"\r
- " moveq #30, d2 \n\t"\r
- " moveq #40, d3 \n\t"\r
- " moveq #50, d4 \n\t"\r
- " moveq #60, d5 \n\t"\r
- " moveq #70, d6 \n\t"\r
- " moveq #80, d7 \n\t"\r
- " move #90, a0 \n\t"\r
- " move #100, a1 \n\t"\r
- " move #110, a2 \n\t"\r
- " move #120, a3 \n\t"\r
- " move #130, a4 \n\t"\r
- " move #140, a5 \n\t"\r
- " move #150, a6 \n\t"\r
- " \n\t"\r
- " cmpi.l #10, d0 \n\t"\r
- " bne reg_test_2_error \n\t"\r
- " cmpi.l #20, d1 \n\t"\r
- " bne reg_test_2_error \n\t"\r
- " cmpi.l #30, d2 \n\t"\r
- " bne reg_test_2_error \n\t"\r
- " cmpi.l #40, d3 \n\t"\r
- " bne reg_test_2_error \n\t"\r
- " cmpi.l #50, d4 \n\t"\r
- " bne reg_test_2_error \n\t"\r
- " cmpi.l #60, d5 \n\t"\r
- " bne reg_test_2_error \n\t"\r
- " cmpi.l #70, d6 \n\t"\r
- " bne reg_test_2_error \n\t"\r
- " cmpi.l #80, d7 \n\t"\r
- " bne reg_test_2_error \n\t"\r
- " move a0, d0 \n\t"\r
- " cmpi.l #90, d0 \n\t"\r
- " bne reg_test_2_error \n\t"\r
- " move a1, d0 \n\t"\r
- " cmpi.l #100, d0 \n\t"\r
- " bne reg_test_2_error \n\t"\r
- " move a2, d0 \n\t"\r
- " cmpi.l #110, d0 \n\t"\r
- " bne reg_test_2_error \n\t"\r
- " move a3, d0 \n\t"\r
- " cmpi.l #120, d0 \n\t"\r
- " bne reg_test_2_error \n\t"\r
- " move a4, d0 \n\t"\r
- " cmpi.l #130, d0 \n\t"\r
- " bne reg_test_2_error \n\t"\r
- " move a5, d0 \n\t"\r
- " cmpi.l #140, d0 \n\t"\r
- " bne reg_test_2_error \n\t"\r
- " move a6, d0 \n\t"\r
- " cmpi.l #150, d0 \n\t"\r
- " bne reg_test_2_error \n\t"\r
- " move ulRegTest1Counter, d0 \n\t"\r
- " addq #1, d0 \n\t"\r
- " move d0, ulRegTest2Counter \n\t"\r
- " bra reg_test_2_start \n\t"\r
- "reg_test_2_error: \n\t"\r
- " bra reg_test_2_error \n\t"\r
- );\r