source: trunk/Softwares/Test/Test_000/src/sys/crt0.s @ 88

Last change on this file since 88 was 88, checked in by rosiere, 15 years ago

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1/*
2 * Test_000 : minimal test
3 *       
4 * Take in R1 the stop address and stop an data
5 */
6       
7        .file   "crt0.s"
8        /*
9        .section .vector
10        */
11        .section .text
12        .align  4       
13
14/* ---[ 0x0  : Print a error ]------------------------------------------- */
15
16        .org 0x0
17_infinite_loop :       
18        l.j     _infinite_loop
19        l.nop
20
21/* ---[ 0x100: RESET exception ]----------------------------------------- */
22        .org 0x100
23        .global _start
24_start:
25        l.movhi r1,     hi(_tty)
26        l.ori   r1, r1, lo(_tty)
27        l.sw    4(r1), r1 /* stop address */
28        l.nop
29        l.nop
30        l.nop
31        l.nop
32        l.nop
33        l.nop
34        l.nop
35        l.nop
36        l.nop
37        l.nop
38        l.nop
39        l.nop
40        l.nop
41        l.nop
42        l.nop
43        l.nop
44        l.nop
45        l.nop
46        l.nop
47        l.nop
48        l.nop
49        l.nop
50        l.nop
51        l.nop
52        l.nop
53        l.nop
54        l.nop
55        l.nop
56        l.nop
57        l.nop
58        l.nop
59        l.nop
60        l.nop
61        l.nop
62        l.nop
63        l.nop
64        l.j     _infinite_loop
65        l.nop
66
Note: See TracBrowser for help on using the repository browser.