aboutsummaryrefslogtreecommitdiff
path: root/prog/src/startup.s
diff options
context:
space:
mode:
authorFlavian Kaufmann <flavian@flaviankaufmann.ch>2024-05-20 12:18:20 +0200
committerFlavian Kaufmann <flavian@flaviankaufmann.ch>2024-05-20 12:18:20 +0200
commit142510b8325b9ef89bd3e22463f36c3caa2815de (patch)
tree0668f163046a43e98e8345c6bf96e97a652341c9 /prog/src/startup.s
parent407a3ff54a35cbe99ba6ac743376e9b0e9718fc1 (diff)
downloadriscv_cpu-142510b8325b9ef89bd3e22463f36c3caa2815de.tar.gz
riscv_cpu-142510b8325b9ef89bd3e22463f36c3caa2815de.zip
io
Diffstat (limited to 'prog/src/startup.s')
-rw-r--r--prog/src/startup.s17
1 files changed, 17 insertions, 0 deletions
diff --git a/prog/src/startup.s b/prog/src/startup.s
index 7adfb5e..963c288 100644
--- a/prog/src/startup.s
+++ b/prog/src/startup.s
@@ -1,6 +1,23 @@
.section .init
.globl _start
_start:
+
+prog:
+/*
+ la t0, 4
+ la t1, 1
+
+ sw t1, 0(t0)
+
+ la t0, 0x00100000
+ li t1, 1
+ sw t1, 0(t0)
+ lw t2, 0(t0)
+
+
+ j halt
+
+*/
/* Set up stack pointer */
la sp, _stack_end