62 lines
800 B
Plaintext
62 lines
800 B
Plaintext
; This test checks the effect of various SR flags over ifs and ifns
|
|
incdir "tests"
|
|
include "dsp_base.inc"
|
|
|
|
lri $IX0, #0x0000
|
|
lri $SR, #0x0001
|
|
|
|
ifs
|
|
lri $IX0, #0x1337
|
|
call send_back
|
|
|
|
ifns
|
|
lri $IX0, #0x1338
|
|
call send_back
|
|
|
|
lri $IX0, #0x0000
|
|
lri $SR, #0x0002
|
|
|
|
ifs
|
|
lri $IX0, #0x1337
|
|
call send_back
|
|
|
|
ifns
|
|
lri $IX0, #0x1338
|
|
call send_back
|
|
|
|
lri $IX0, #0x0000
|
|
lri $SR, #0x0004
|
|
|
|
ifs
|
|
lri $IX0, #0x1337
|
|
call send_back
|
|
|
|
ifns
|
|
lri $IX0, #0x1338
|
|
call send_back
|
|
|
|
lri $IX0, #0x0000
|
|
lri $SR, #0x0008
|
|
|
|
ifs
|
|
lri $IX0, #0x1337
|
|
call send_back
|
|
|
|
ifns
|
|
lri $IX0, #0x1338
|
|
call send_back
|
|
|
|
lri $IX0, #0x0000
|
|
lri $SR, #0x000a
|
|
|
|
ifs
|
|
lri $IX0, #0x1337
|
|
call send_back
|
|
|
|
ifns
|
|
lri $IX0, #0x1338
|
|
call send_back
|
|
|
|
; We're done, DO NOT DELETE THIS LINE
|
|
jmp end_of_test
|