OpenCores
URL https://opencores.org/ocsvn/t48/t48/trunk

Subversion Repositories t48

[/] [t48/] [tags/] [rel_1_1/] [sw/] [verif/] [black_box/] [mov/] [ind_rr/] [test.asm] - Blame information for rev 292

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 arniml
        ;; *******************************************************************
2
        ;; $Id: test.asm,v 1.1.1.1 2004-03-25 22:29:16 arniml Exp $
3
        ;;
4
        ;; Test MOV @ Rr for RB0.
5
        ;; *******************************************************************
6
 
7
        INCLUDE "cpu.inc"
8
        INCLUDE "pass_fail.inc"
9
 
10
        ORG     0
11
 
12
        ;; Start of test
13
        mov     r0, #0FFH
14
fill_loop:
15
        mov     a, r0
16
        mov     @r0, a
17
        djnz    r0, fill_loop
18
 
19
        ;; check memory
20
        mov     a, r0
21
        jnz     fail
22
        mov     r0, #0FFH
23
check_loop1:
24
        mov     a, @r1
25
        add     a, r0
26
        jnz     fail
27
        dec     r0
28
        inc     r1
29
        mov     a, r1
30
        jnz     check_loop1
31
        jmp     test_2
32
 
33
fail:   FAIL
34
 
35
        ;;
36
        ALIGN   256
37
        ;;
38
 
39
test_2: ;; test MOV @ Rr, data
40
        mov     r0, #0C0H
41
        mov     r1, #0E0H
42
        mov     @r0, #000H
43
        mov     @r1, #020H
44
 
45
        inc     r0
46
        inc     r1
47
        mov     @r0, #001H
48
        mov     @r1, #021H
49
        inc     r0
50
        inc     r1
51
        mov     @r0, #002H
52
        mov     @r1, #022H
53
        inc     r0
54
        inc     r1
55
        mov     @r0, #003H
56
        mov     @r1, #023H
57
        inc     r0
58
        inc     r1
59
        mov     @r0, #004H
60
        mov     @r1, #024H
61
        inc     r0
62
        inc     r1
63
        mov     @r0, #005H
64
        mov     @r1, #025H
65
        inc     r0
66
        inc     r1
67
        mov     @r0, #006H
68
        mov     @r1, #026H
69
        inc     r0
70
        inc     r1
71
        mov     @r0, #007H
72
        mov     @r1, #027H
73
        inc     r0
74
        inc     r1
75
        mov     @r0, #008H
76
        mov     @r1, #028H
77
        inc     r0
78
        inc     r1
79
        mov     @r0, #009H
80
        mov     @r1, #029H
81
        inc     r0
82
        inc     r1
83
        mov     @r0, #00AH
84
        mov     @r1, #02AH
85
        inc     r0
86
        inc     r1
87
        mov     @r0, #00BH
88
        mov     @r1, #02BH
89
        inc     r0
90
        inc     r1
91
        mov     @r0, #00CH
92
        mov     @r1, #02CH
93
        inc     r0
94
        inc     r1
95
        mov     @r0, #00DH
96
        mov     @r1, #02DH
97
        inc     r0
98
        inc     r1
99
        mov     @r0, #00EH
100
        mov     @r1, #02EH
101
        inc     r0
102
        inc     r1
103
        mov     @r0, #00FH
104
        mov     @r1, #02FH
105
        ;;
106
        inc     r0
107
        inc     r1
108
        mov     @r0, #010H
109
        mov     @r1, #030H
110
        inc     r0
111
        inc     r1
112
        mov     @r0, #011H
113
        mov     @r1, #031H
114
        inc     r0
115
        inc     r1
116
        mov     @r0, #012H
117
        mov     @r1, #032H
118
        inc     r0
119
        inc     r1
120
        mov     @r0, #013H
121
        mov     @r1, #033H
122
        inc     r0
123
        inc     r1
124
        mov     @r0, #014H
125
        mov     @r1, #034H
126
        inc     r0
127
        inc     r1
128
        mov     @r0, #015H
129
        mov     @r1, #035H
130
        inc     r0
131
        inc     r1
132
        mov     @r0, #016H
133
        mov     @r1, #036H
134
        inc     r0
135
        inc     r1
136
        mov     @r0, #017H
137
        mov     @r1, #037H
138
        inc     r0
139
        inc     r1
140
        mov     @r0, #018H
141
        mov     @r1, #038H
142
        inc     r0
143
        inc     r1
144
        mov     @r0, #019H
145
        mov     @r1, #039H
146
        inc     r0
147
        inc     r1
148
        mov     @r0, #01AH
149
        mov     @r1, #03AH
150
        inc     r0
151
        inc     r1
152
        mov     @r0, #01BH
153
        mov     @r1, #03BH
154
        inc     r0
155
        inc     r1
156
        mov     @r0, #01CH
157
        mov     @r1, #03CH
158
        inc     r0
159
        inc     r1
160
        mov     @r0, #01DH
161
        mov     @r1, #03DH
162
        inc     r0
163
        inc     r1
164
        mov     @r0, #01EH
165
        mov     @r1, #03EH
166
        inc     r0
167
        inc     r1
168
        mov     @r0, #01FH
169
        mov     @r1, #03FH
170
 
171
        mov     r0, #0FFH
172
        mov     r1, #11000001B
173
check_loop2:
174
        mov     a, @r0
175
        add     a, r1
176
        jnz     fail2
177
        inc     r1
178
        dec     r0
179
        mov     a, #01000000B
180
        add     a, r0
181
        jnz     check_loop2
182
 
183
pass2:  PASS
184
 
185
fail2:  FAIL

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.