2009-04-26 14:37:20 +00:00
|
|
|
; This test checks the effect of various SR flags over ifg and ifle
|
2009-04-26 21:38:48 +00:00
|
|
|
incdir "tests"
|
2009-04-26 14:37:20 +00:00
|
|
|
include "dsp_base.inc"
|
2009-04-18 14:02:34 +00:00
|
|
|
|
2009-04-26 14:37:20 +00:00
|
|
|
lri $IX0, #0x0000
|
|
|
|
lri $SR, #0x0001
|
2009-04-18 14:02:34 +00:00
|
|
|
|
2009-04-26 14:37:20 +00:00
|
|
|
ifg
|
|
|
|
lri $IX0, #0x1337
|
2009-04-26 21:21:15 +00:00
|
|
|
call send_back ; 1
|
2009-04-18 14:02:34 +00:00
|
|
|
|
2009-04-26 14:37:20 +00:00
|
|
|
ifle
|
|
|
|
lri $IX0, #0x1338
|
2009-04-26 21:21:15 +00:00
|
|
|
call send_back ; 2
|
2009-04-18 14:02:34 +00:00
|
|
|
|
2009-04-26 14:37:20 +00:00
|
|
|
lri $IX0, #0x0000
|
2009-04-26 21:21:15 +00:00
|
|
|
lri $SR, #0x0002
|
2009-04-18 14:02:34 +00:00
|
|
|
|
2009-04-26 14:37:20 +00:00
|
|
|
ifg
|
|
|
|
lri $IX0, #0x1337
|
2009-04-26 21:21:15 +00:00
|
|
|
call send_back ; 3
|
2009-04-18 14:02:34 +00:00
|
|
|
|
2009-04-26 14:37:20 +00:00
|
|
|
ifle
|
|
|
|
lri $IX0, #0x1338
|
2009-04-26 21:21:15 +00:00
|
|
|
call send_back ; 4
|
2009-04-18 14:02:34 +00:00
|
|
|
|
2009-04-26 14:37:20 +00:00
|
|
|
lri $IX0, #0x0000
|
|
|
|
lri $SR, #0x0004
|
2009-04-18 14:02:34 +00:00
|
|
|
|
2009-04-26 14:37:20 +00:00
|
|
|
ifg
|
|
|
|
lri $IX0, #0x1337
|
2009-04-26 21:21:15 +00:00
|
|
|
call send_back ; 5
|
2009-04-18 14:02:34 +00:00
|
|
|
|
2009-04-26 14:37:20 +00:00
|
|
|
ifle
|
|
|
|
lri $IX0, #0x1338
|
2009-04-26 21:21:15 +00:00
|
|
|
call send_back ; 6
|
2009-04-18 14:02:34 +00:00
|
|
|
|
2009-04-26 14:37:20 +00:00
|
|
|
lri $IX0, #0x0000
|
|
|
|
lri $SR, #0x0008
|
2009-04-18 14:02:34 +00:00
|
|
|
|
2009-04-26 14:37:20 +00:00
|
|
|
ifg
|
|
|
|
lri $IX0, #0x1337
|
2009-04-26 21:21:15 +00:00
|
|
|
call send_back ; 7
|
2009-04-23 08:55:12 +00:00
|
|
|
|
2009-04-26 14:37:20 +00:00
|
|
|
ifle
|
|
|
|
lri $IX0, #0x1338
|
2009-04-26 21:21:15 +00:00
|
|
|
call send_back ; 8
|
2009-04-18 18:10:51 +00:00
|
|
|
|
2009-04-26 14:37:20 +00:00
|
|
|
lri $IX0, #0x0000
|
2009-06-08 14:36:00 +00:00
|
|
|
lri $SR, #0x000a
|
2009-04-18 14:02:34 +00:00
|
|
|
|
2009-04-26 14:37:20 +00:00
|
|
|
ifg
|
|
|
|
lri $IX0, #0x1337
|
2009-04-26 21:21:15 +00:00
|
|
|
call send_back ; 9
|
2009-04-18 14:02:34 +00:00
|
|
|
|
2009-04-26 14:37:20 +00:00
|
|
|
ifle
|
|
|
|
lri $IX0, #0x1338
|
2009-04-26 21:21:15 +00:00
|
|
|
call send_back ; 10
|
|
|
|
|
|
|
|
lri $IX0, #0x0000
|
|
|
|
lri $SR, #0x0010
|
|
|
|
|
|
|
|
ifg
|
|
|
|
lri $IX0, #0x1337
|
|
|
|
call send_back ; 11
|
|
|
|
|
|
|
|
ifle
|
|
|
|
lri $IX0, #0x1338
|
|
|
|
call send_back ; 12
|
|
|
|
|
|
|
|
lri $IX0, #0x0000
|
|
|
|
lri $SR, #0x0020
|
|
|
|
|
|
|
|
ifg
|
|
|
|
lri $IX0, #0x1337
|
|
|
|
call send_back ; 13
|
|
|
|
|
|
|
|
ifle
|
|
|
|
lri $IX0, #0x1338
|
|
|
|
call send_back ; 14
|
|
|
|
|
|
|
|
lri $IX0, #0x0000
|
|
|
|
lri $SR, #0x0040
|
|
|
|
|
|
|
|
ifg
|
|
|
|
lri $IX0, #0x1337
|
|
|
|
call send_back ; 15
|
|
|
|
|
|
|
|
ifle
|
|
|
|
lri $IX0, #0x1338
|
|
|
|
call send_back ; 16
|
2009-04-18 18:10:51 +00:00
|
|
|
|
2009-04-26 14:37:20 +00:00
|
|
|
; We're done, DO NOT DELETE THIS LINE
|
|
|
|
jmp end_of_test
|