Source/DSPSpy/tests/st3_test.ds
raw| 1 | ; This test checks when $st3 gets decremented during BLOOP{,I} iterations. |
| 2 | ; Expected $st3 values are: 2, 1, 0x0b88, 2, 1, 0x0b88. |
| 3 | |
| 4 | incdir "tests" |
| 5 | include "dsp_base.inc" |
| 6 | |
| 7 | test_main: |
| 8 | LRI $ac0.l, #2 |
| 9 | BLOOP $ac0.l, last_of_bloop |
| 10 | CALL send_back |
| 11 | NOP |
| 12 | NOP |
| 13 | last_of_bloop: |
| 14 | NOP |
| 15 | CALL send_back |
| 16 | |
| 17 | BLOOPI #2, last_of_bloopi |
| 18 | CALL send_back |
| 19 | NOP |
| 20 | NOP |
| 21 | last_of_bloopi: |
| 22 | NOP |
| 23 | CALL send_back |
| 24 | |
| 25 | JMP end_of_test |