2009-05-02 22:19:37 +02:00
|
|
|
; this test try to test for 1's mode
|
|
|
|
incdir "tests"
|
|
|
|
include "dsp_base.inc"
|
|
|
|
|
2021-08-16 00:26:03 +02:00
|
|
|
test_main:
|
2009-05-03 00:47:13 +02:00
|
|
|
clr $ACC0
|
|
|
|
neg $ACC0
|
|
|
|
|
|
|
|
call send_back ; 1
|
|
|
|
|
|
|
|
clr $ACC0
|
|
|
|
lri $ac0.l, #0x0001
|
2009-05-02 22:19:37 +02:00
|
|
|
lri $SR, #0x0001
|
|
|
|
|
|
|
|
neg $ACC0
|
2009-05-03 00:47:13 +02:00
|
|
|
call send_back ; 2
|
2009-05-02 22:19:37 +02:00
|
|
|
|
|
|
|
|
2009-05-03 00:47:13 +02:00
|
|
|
lri $ac0.l, #0x0001
|
2009-05-02 22:19:37 +02:00
|
|
|
lri $SR, #0x0002
|
|
|
|
|
|
|
|
neg $ACC0
|
2009-05-03 00:47:13 +02:00
|
|
|
call send_back ; 3
|
2009-05-02 22:19:37 +02:00
|
|
|
|
2009-05-03 00:47:13 +02:00
|
|
|
lri $ac0.l, #0x0001
|
2009-05-02 22:19:37 +02:00
|
|
|
lri $SR, #0x0004
|
|
|
|
|
|
|
|
neg $ACC0
|
2009-05-03 00:47:13 +02:00
|
|
|
call send_back ; 4
|
2009-05-02 22:19:37 +02:00
|
|
|
|
2009-05-03 00:47:13 +02:00
|
|
|
lri $ac0.l, #0x0001
|
2009-05-02 22:19:37 +02:00
|
|
|
lri $SR, #0x0008
|
|
|
|
|
|
|
|
neg $ACC0
|
2009-05-03 00:47:13 +02:00
|
|
|
call send_back ; 5
|
2009-05-02 22:19:37 +02:00
|
|
|
|
2009-05-03 00:47:13 +02:00
|
|
|
lri $ac0.l, #0x0001
|
2009-05-02 22:19:37 +02:00
|
|
|
lri $SR, #0x0010
|
|
|
|
|
|
|
|
neg $ACC0
|
2009-05-03 00:47:13 +02:00
|
|
|
call send_back ; 6
|
2009-05-02 22:19:37 +02:00
|
|
|
|
2009-05-03 00:47:13 +02:00
|
|
|
lri $ac0.l, #0x0001
|
2009-05-02 22:19:37 +02:00
|
|
|
lri $SR, #0x0020
|
|
|
|
|
|
|
|
neg $ACC0
|
2009-05-03 00:47:13 +02:00
|
|
|
call send_back ; 7
|
2009-05-02 22:19:37 +02:00
|
|
|
|
2009-05-03 00:47:13 +02:00
|
|
|
lri $ac0.l, #0x0001
|
2009-05-02 22:19:37 +02:00
|
|
|
lri $SR, #0x0040
|
|
|
|
|
|
|
|
neg $ACC0
|
2009-05-03 00:47:13 +02:00
|
|
|
call send_back ; 8
|
2009-05-02 22:19:37 +02:00
|
|
|
|
2009-05-03 00:47:13 +02:00
|
|
|
lri $ac0.l, #0x0001
|
2009-05-02 22:19:37 +02:00
|
|
|
lri $SR, #0x0080
|
|
|
|
|
|
|
|
neg $ACC0
|
2009-05-03 00:47:13 +02:00
|
|
|
call send_back ; 9
|
2009-05-02 22:19:37 +02:00
|
|
|
|
2009-05-03 00:47:13 +02:00
|
|
|
lri $ac0.l, #0x0001
|
2009-05-02 22:19:37 +02:00
|
|
|
lri $SR, #0x0100
|
|
|
|
|
|
|
|
neg $ACC0
|
2009-05-03 00:47:13 +02:00
|
|
|
call send_back ; 10
|
2009-05-02 22:19:37 +02:00
|
|
|
|
2009-05-03 00:47:13 +02:00
|
|
|
lri $ac0.l, #0x0001
|
2009-05-02 22:19:37 +02:00
|
|
|
lri $SR, #0x0200
|
|
|
|
|
|
|
|
neg $ACC0
|
2009-05-03 00:47:13 +02:00
|
|
|
call send_back ; 11
|
2009-05-02 22:19:37 +02:00
|
|
|
|
2009-05-03 00:47:13 +02:00
|
|
|
lri $ac0.l, #0x0001
|
2009-05-02 22:19:37 +02:00
|
|
|
lri $SR, #0x0400
|
|
|
|
|
|
|
|
neg $ACC0
|
2009-05-03 00:47:13 +02:00
|
|
|
call send_back ; 12
|
2009-05-02 22:19:37 +02:00
|
|
|
|
2009-05-03 00:47:13 +02:00
|
|
|
lri $ac0.l, #0x0001
|
2009-05-02 22:19:37 +02:00
|
|
|
lri $SR, #0x0800
|
|
|
|
|
|
|
|
neg $ACC0
|
2009-05-03 00:47:13 +02:00
|
|
|
call send_back ; 13
|
2009-05-02 22:19:37 +02:00
|
|
|
|
2009-05-03 00:47:13 +02:00
|
|
|
lri $ac0.l, #0x0001
|
2009-05-02 22:19:37 +02:00
|
|
|
lri $SR, #0x1000
|
|
|
|
|
|
|
|
neg $ACC0
|
2009-05-03 00:47:13 +02:00
|
|
|
call send_back ; 14
|
2009-05-02 22:19:37 +02:00
|
|
|
|
2009-05-03 00:47:13 +02:00
|
|
|
lri $ac0.l, #0x0001
|
2009-05-02 22:19:37 +02:00
|
|
|
lri $SR, #0x2000
|
|
|
|
|
|
|
|
neg $ACC0
|
2009-05-03 00:47:13 +02:00
|
|
|
call send_back ; 15
|
2009-05-02 22:19:37 +02:00
|
|
|
|
2009-05-03 00:47:13 +02:00
|
|
|
lri $ac0.l, #0x0001
|
2009-05-02 22:19:37 +02:00
|
|
|
lri $SR, #0x4000
|
|
|
|
|
|
|
|
neg $ACC0
|
2009-05-03 00:47:13 +02:00
|
|
|
call send_back ; 16
|
2009-05-02 22:19:37 +02:00
|
|
|
|
2009-05-03 00:47:13 +02:00
|
|
|
lri $ac0.l, #0x0001
|
2009-05-02 22:19:37 +02:00
|
|
|
lri $SR, #0x8000
|
|
|
|
|
|
|
|
neg $ACC0
|
2009-05-03 00:47:13 +02:00
|
|
|
call send_back ; 17
|
2009-05-02 22:19:37 +02:00
|
|
|
|
|
|
|
set16
|
2009-05-03 00:47:13 +02:00
|
|
|
lri $ac0.l, #0x0001
|
2009-05-02 22:19:37 +02:00
|
|
|
lri $SR, #0x2230
|
|
|
|
|
|
|
|
neg $ACC0
|
|
|
|
set40
|
2009-05-03 00:47:13 +02:00
|
|
|
call send_back ; 18
|
2009-05-02 22:19:37 +02:00
|
|
|
|
2022-05-23 20:33:59 +02:00
|
|
|
; We're done, DO NOT DELETE THIS LINE
|
|
|
|
jmp end_of_test
|