Last change
on this file since 137 was
109,
checked in by rosiere, 16 years ago
|
1) Configuration : instance configuration file : regroup similar instance
2) Configuration : timing default = 0
3) Debug/Commit_unit : Add watch dog timer
4) Issue_queue : Test parameters : add test if type is optionnal
5) Cor_glue : Fix insert index
6) Free_list : remove bank_by_pop (else deadlock)
7) Update Free List : add register to source event
|
-
Property svn:keywords set to
Id
|
File size:
1.9 KB
|
Line | |
---|
1 | /* |
---|
2 | * Test_023 |
---|
3 | * |
---|
4 | * end_ko : infinite_loop |
---|
5 | * end_ok : Write in R1 the stop address and stop an data |
---|
6 | * The store in the destination of an jump |
---|
7 | * start : Test l.jalr |
---|
8 | */ |
---|
9 | |
---|
10 | .file "crt0.s" |
---|
11 | /* |
---|
12 | .section .vector |
---|
13 | */ |
---|
14 | .section .text |
---|
15 | .align 4 |
---|
16 | |
---|
17 | /* ---[ 0x0 : Print a error ]------------------------------------------- */ |
---|
18 | |
---|
19 | .org 0x0 |
---|
20 | _end_ko : |
---|
21 | l.movhi r1, hi(_tty) |
---|
22 | l.ori r1, r1, lo(_tty) |
---|
23 | l.sw 4(r1), r1 /* stop address */ |
---|
24 | _infinite_loop : |
---|
25 | l.j _infinite_loop |
---|
26 | l.nop |
---|
27 | |
---|
28 | _end_ok : |
---|
29 | l.movhi r1, hi(_tty) |
---|
30 | l.ori r1, r1, lo(_tty) |
---|
31 | l.sw 4(r1), r0 /* stop address */ |
---|
32 | |
---|
33 | |
---|
34 | /* ---[ 0x100: RESET exception ]----------------------------------------- */ |
---|
35 | .org 0x100 |
---|
36 | .global _start |
---|
37 | _start: |
---|
38 | l.and r1, r0, r0 /* counter 1 */ |
---|
39 | l.ori r2, r0, 0x10 /* limit */ |
---|
40 | l.j _go0 |
---|
41 | l.nop |
---|
42 | l.j _end_ko |
---|
43 | l.nop |
---|
44 | |
---|
45 | .org 0x140 |
---|
46 | _go0 : |
---|
47 | l.nop |
---|
48 | l.nop |
---|
49 | l.movhi r3, hi(_go1) |
---|
50 | l.ori r3, r3, lo(_go1) |
---|
51 | l.jalr r3 |
---|
52 | l.sfeqi r9, 0x158 |
---|
53 | l.j _end_ko |
---|
54 | l.nop |
---|
55 | |
---|
56 | .org 0x180 |
---|
57 | _go2 : |
---|
58 | l.bnf _end_ko |
---|
59 | l.nop |
---|
60 | l.movhi r3, hi(_go3) |
---|
61 | l.ori r3, r3, lo(_go3) |
---|
62 | l.jalr r3 |
---|
63 | l.sfeqi r9, 0x198 |
---|
64 | l.j _end_ko |
---|
65 | l.nop |
---|
66 | |
---|
67 | .org 0x1c0 |
---|
68 | _go1 : |
---|
69 | l.bnf _end_ko |
---|
70 | l.nop |
---|
71 | l.movhi r3, hi(_go2) |
---|
72 | l.ori r3, r3, lo(_go2) |
---|
73 | l.jalr r3 |
---|
74 | l.sfeqi r9,0x1d8 |
---|
75 | l.j _end_ko |
---|
76 | l.nop |
---|
77 | |
---|
78 | .org 0x200 |
---|
79 | _go3 : |
---|
80 | l.bnf _end_ko |
---|
81 | l.nop |
---|
82 | l.movhi r3, hi(_go4) |
---|
83 | l.ori r3, r3, lo(_go4) |
---|
84 | l.jalr r3 |
---|
85 | l.sfeqi r9,0x218 |
---|
86 | l.j _end_ko |
---|
87 | l.nop |
---|
88 | |
---|
89 | .org 0x240 |
---|
90 | _go4 : |
---|
91 | l.bnf _end_ko |
---|
92 | l.nop |
---|
93 | l.addi r1, r1, 1 |
---|
94 | l.sfeq r1, r2 |
---|
95 | l.bf _end_ok |
---|
96 | l.nop |
---|
97 | l.j _go0 |
---|
98 | l.nop |
---|
99 | l.j _end_ko |
---|
100 | l.nop |
---|
Note: See
TracBrowser
for help on using the repository browser.