dma_tiny.s
1 KB
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
/************************************************************************
IMEM DMA TESTS: File #0
************************************************************************/
/****************************************************************
DMA TEST #0.1
****************************************************************/
ori $12, $0, 0x1500 /* R12 = IMEM address */
lui $13, 0x0000 /* R13 = DRAM address */
ori $13, $13, 0x6000
ori $14, $0, 0x000F /* R14 = length */
mtc0 $12, $0
mtc0 $13, $1
mtc0 $14, $2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jalr $31, $12
nop
addi $12, $12, 0x0008
jalr $31, $12
nop
Done: ori $1, $0, 0xFEED /* Test passed */
break
Fail: break