blob: 164f9fe38d638bb2eb0013ba135cbed4cc1d63c5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// trivial stuff to make sure simulator exits once test program is run and
// making sure our _start is the first thing in the object file
_start:
// random starting stack location
li sp, 13122
mv fp, sp
call ra, main
li t0, 3
csrrw mpower, x0, t0
// simple I/O
_putchar:
li t0, 19683
st t a0, 0(t0)
ret ra
// include the rest of the test program here, doesn't really matter how
|