dmem_5.s
863 Bytes
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
/***********************************************
* dmem_5 pattern increement by 0001000100010001
***********************************************/
#define DmemPntr_W $1
#define I $2
#define R_loop $3
ori DmemPntr_W, $0, 0x0
or I, $0, $0
ori R_loop, $0, 256
lqv $v0, 16($0); /* Initial value = 0 */
lqv $v1, 0($0); /* Increement 010101 */
loop:
sqv $v0, 0(DmemPntr_W); addi DmemPntr_W,DmemPntr_W,16;
vadd $v0, $v0, $v1
addi I, I, 1
bne R_loop, I, loop
nop
nop
or $1,$0, $0
ori $1, 0xfeed
nop
nop
nop
nop
break
nop
nop
nop
nop
nop
nop
nop
.data
.half 0x0001
.half 0x0001
.half 0x0001
.half 0x0001
.half 0x0001
.half 0x0001
.half 0x0001
.half 0x0001
.half 0x0000
.half 0x0000
.half 0x0000
.half 0x0000
.half 0x0000
.half 0x0000
.half 0x0000
.half 0x0000