forked from dolphin-emu/dolphin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathneg_test.ds
116 lines (77 loc) · 1.29 KB
/
neg_test.ds
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
; this test try to test for 1's mode
incdir "tests"
include "dsp_base.inc"
clr $ACC0
neg $ACC0
call send_back ; 1
clr $ACC0
lri $ac0.l, #0x0001
lri $SR, #0x0001
neg $ACC0
call send_back ; 2
lri $ac0.l, #0x0001
lri $SR, #0x0002
neg $ACC0
call send_back ; 3
lri $ac0.l, #0x0001
lri $SR, #0x0004
neg $ACC0
call send_back ; 4
lri $ac0.l, #0x0001
lri $SR, #0x0008
neg $ACC0
call send_back ; 5
lri $ac0.l, #0x0001
lri $SR, #0x0010
neg $ACC0
call send_back ; 6
lri $ac0.l, #0x0001
lri $SR, #0x0020
neg $ACC0
call send_back ; 7
lri $ac0.l, #0x0001
lri $SR, #0x0040
neg $ACC0
call send_back ; 8
lri $ac0.l, #0x0001
lri $SR, #0x0080
neg $ACC0
call send_back ; 9
lri $ac0.l, #0x0001
lri $SR, #0x0100
neg $ACC0
call send_back ; 10
lri $ac0.l, #0x0001
lri $SR, #0x0200
neg $ACC0
call send_back ; 11
lri $ac0.l, #0x0001
lri $SR, #0x0400
neg $ACC0
call send_back ; 12
lri $ac0.l, #0x0001
lri $SR, #0x0800
neg $ACC0
call send_back ; 13
lri $ac0.l, #0x0001
lri $SR, #0x1000
neg $ACC0
call send_back ; 14
lri $ac0.l, #0x0001
lri $SR, #0x2000
neg $ACC0
call send_back ; 15
lri $ac0.l, #0x0001
lri $SR, #0x4000
neg $ACC0
call send_back ; 16
lri $ac0.l, #0x0001
lri $SR, #0x8000
neg $ACC0
call send_back ; 17
set16
lri $ac0.l, #0x0001
lri $SR, #0x2230
neg $ACC0
set40
call send_back ; 18