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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
.include "t-macros.i"
start
.align 3
.data
byteaddr: .word bytes
.align 7
bytes:
.byte 0xb0
.byte 0xb1
.byte 0xb2
.byte 0xb3
.byte 0xb4
.byte 0xb5
.byte 0xb6
.byte 0xb7
.byte 0xb8
.byte 0xb9
.byte 0xba
.byte 0xbb
.byte 0xbc
.byte 0xbd
.byte 0xbe
.byte 0xbf
.text
ld $8, byteaddr
test_sdr_0:
load $10 0xdeadbeefdeadbeef 0xb7b6b5b4b3b2b1b0
sdr $10, 0($8)
ld $10, 0($8)
check10 0xdeadbeefdeadbeef 0xb7b6b5b4b3b2b1b0
ld $10, 8($8)
check10 0xdeadbeefdeadbeef 0xbfbebdbcbbbab9b8
test_sdr_1:
load $10 0xdeadbeefdeadbeef 0xccb7b6b5b4b3b2b1
sdr $10, 1($8)
ld $10, 0($8)
check10 0xdeadbeefdeadbeef 0xb7b6b5b4b3b2b1b0
ld $10, 8($8)
check10 0xdeadbeefdeadbeef 0xbfbebdbcbbbab9b8
test_sdr_2:
load $10 0xdeadbeefdeadbeef 0xccccb7b6b5b4b3b2
sdr $10, 2($8)
ld $10, 0($8)
check10 0xdeadbeefdeadbeef 0xb7b6b5b4b3b2b1b0
ld $10, 8($8)
check10 0xdeadbeefdeadbeef 0xbfbebdbcbbbab9b8
test_sdr_3:
load $10 0xdeadbeefdeadbeef 0xccccccb7b6b5b4b3
sdr $10, 3($8)
ld $10, 0($8)
check10 0xdeadbeefdeadbeef 0xb7b6b5b4b3b2b1b0
ld $10, 8($8)
check10 0xdeadbeefdeadbeef 0xbfbebdbcbbbab9b8
test_sdr_4:
load $10 0xdeadbeefdeadbeef 0xccccccccb7b6b5b4
sdr $10, 4($8)
ld $10, 0($8)
check10 0xdeadbeefdeadbeef 0xb7b6b5b4b3b2b1b0
ld $10, 8($8)
check10 0xdeadbeefdeadbeef 0xbfbebdbcbbbab9b8
test_sdr_5:
load $10 0xdeadbeefdeadbeef 0xccccccccccb7b6b5
sdr $10, 5($8)
ld $10, 0($8)
check10 0xdeadbeefdeadbeef 0xb7b6b5b4b3b2b1b0
ld $10, 8($8)
check10 0xdeadbeefdeadbeef 0xbfbebdbcbbbab9b8
test_sdr_6:
load $10 0xdeadbeefdeadbeef 0xccccccccccccb7b6
sdr $10, 6($8)
ld $10, 0($8)
check10 0xdeadbeefdeadbeef 0xb7b6b5b4b3b2b1b0
ld $10, 8($8)
check10 0xdeadbeefdeadbeef 0xbfbebdbcbbbab9b8
test_sdr_7:
load $10 0xdeadbeefdeadbeef 0xccccccccccccccb7
sdr $10, 7($8)
ld $10, 0($8)
check10 0xdeadbeefdeadbeef 0xb7b6b5b4b3b2b1b0
ld $10, 8($8)
check10 0xdeadbeefdeadbeef 0xbfbebdbcbbbab9b8
test_sdr_8:
load $10 0xdeadbeefdeadbeef 0xbfbebdbcbbbab9b8
sdr $10, 8($8)
ld $10, 0($8)
check10 0xdeadbeefdeadbeef 0xb7b6b5b4b3b2b1b0
ld $10, 8($8)
check10 0xdeadbeefdeadbeef 0xbfbebdbcbbbab9b8
test_sdr_9:
load $10 0xdeadbeefdeadbeef 0xccbfbebdbcbbbab9
sdr $10, 9($8)
ld $10, 0($8)
check10 0xdeadbeefdeadbeef 0xb7b6b5b4b3b2b1b0
ld $10, 8($8)
check10 0xdeadbeefdeadbeef 0xbfbebdbcbbbab9b8
test_sdr_10:
load $10 0xdeadbeefdeadbeef 0xccccbfbebdbcbbba
sdr $10, 10($8)
ld $10, 0($8)
check10 0xdeadbeefdeadbeef 0xb7b6b5b4b3b2b1b0
ld $10, 8($8)
check10 0xdeadbeefdeadbeef 0xbfbebdbcbbbab9b8
test_sdr_11:
load $10 0xdeadbeefdeadbeef 0xccccccbfbebdbcbb
sdr $10, 11($8)
ld $10, 0($8)
check10 0xdeadbeefdeadbeef 0xb7b6b5b4b3b2b1b0
ld $10, 8($8)
check10 0xdeadbeefdeadbeef 0xbfbebdbcbbbab9b8
test_sdr_12:
load $10 0xdeadbeefdeadbeef 0xccccccccbfbebdbc
sdr $10, 12($8)
ld $10, 0($8)
check10 0xdeadbeefdeadbeef 0xb7b6b5b4b3b2b1b0
ld $10, 8($8)
check10 0xdeadbeefdeadbeef 0xbfbebdbcbbbab9b8
test_sdr_13:
load $10 0xdeadbeefdeadbeef 0xccccccccccbfbebd
sdr $10, 13($8)
ld $10, 0($8)
check10 0xdeadbeefdeadbeef 0xb7b6b5b4b3b2b1b0
ld $10, 8($8)
check10 0xdeadbeefdeadbeef 0xbfbebdbcbbbab9b8
test_sdr_14:
load $10 0xdeadbeefdeadbeef 0xccccccccccccbfbe
sdr $10, 14($8)
ld $10, 0($8)
check10 0xdeadbeefdeadbeef 0xb7b6b5b4b3b2b1b0
ld $10, 8($8)
check10 0xdeadbeefdeadbeef 0xbfbebdbcbbbab9b8
test_sdr_15:
load $10 0xdeadbeefdeadbeef 0xccccccccccccccbf
sdr $10, 15($8)
ld $10, 0($8)
check10 0xdeadbeefdeadbeef 0xb7b6b5b4b3b2b1b0
ld $10, 8($8)
check10 0xdeadbeefdeadbeef 0xbfbebdbcbbbab9b8
exit0
|