|
Last change
on this file since 93 was
88,
checked in by rosiere, 17 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 | * The store in the destination of an jump |
|---|
| 6 | */ |
|---|
| 7 | |
|---|
| 8 | .file "crt0.s" |
|---|
| 9 | /* |
|---|
| 10 | .section .vector |
|---|
| 11 | */ |
|---|
| 12 | .section .text |
|---|
| 13 | .align 4 |
|---|
| 14 | |
|---|
| 15 | /* ---[ 0x0 : Print a error ]------------------------------------------- */ |
|---|
| 16 | |
|---|
| 17 | .org 0x0 |
|---|
| 18 | _end_ok : |
|---|
| 19 | l.movhi r1, hi(_tty) |
|---|
| 20 | l.ori r1, r1, lo(_tty) |
|---|
| 21 | l.sw 4(r1), r1 /* stop address */ |
|---|
| 22 | l.nop |
|---|
| 23 | l.nop |
|---|
| 24 | l.nop |
|---|
| 25 | l.nop |
|---|
| 26 | l.nop |
|---|
| 27 | l.nop |
|---|
| 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 | _infinite_loop : |
|---|
| 59 | l.j _infinite_loop |
|---|
| 60 | l.nop |
|---|
| 61 | |
|---|
| 62 | /* ---[ 0x100: RESET exception ]----------------------------------------- */ |
|---|
| 63 | .org 0x100 |
|---|
| 64 | .global _start |
|---|
| 65 | _start: |
|---|
| 66 | l.nop |
|---|
| 67 | l.nop |
|---|
| 68 | l.j _end_ok |
|---|
| 69 | l.nop |
|---|
| 70 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.