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

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

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 965 bytes
Line 
1/*
2 * Test_004
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  : place an value on 16 bits in a register. Test register with an immediat (no sign extension)
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_infinite_loop :       
22        l.j     _infinite_loop
23        l.nop
24
25
26/* ---[ 0x100: RESET exception ]----------------------------------------- */
27        .org 0x100
28        .global _start
29_start:
30        l.nop
31        l.nop
32        l.movhi r1,     hi(0x00001981)
33        l.ori   r1, r1, lo(0x00001981)
34        l.sfeqi r1, 0x1981
35        l.bf    _end_ok
36        l.nop
37        l.j     _end_ko
38        l.nop
39
40        .org 0x180
41_end_ok :
42        l.movhi r1,     hi(_tty)
43        l.ori   r1, r1, lo(_tty)
44        l.sw    4(r1), r1 /* stop address */
45       
Note: See TracBrowser for help on using the repository browser.