aboutsummaryrefslogtreecommitdiff
path: root/prog/main.s
diff options
context:
space:
mode:
Diffstat (limited to 'prog/main.s')
-rw-r--r--prog/main.s24
1 files changed, 24 insertions, 0 deletions
diff --git a/prog/main.s b/prog/main.s
new file mode 100644
index 0000000..bbae5bb
--- /dev/null
+++ b/prog/main.s
@@ -0,0 +1,24 @@
+.section .text
+.globl _start
+
+_start:
+ #la sp, stack_top
+
+ #li a0, 10
+ #li a1, 20
+ #add a2, a0, a1
+ addi t0, zero, 5
+ addi t1, zero, 3
+ add t2, t0, t1
+
+halt_loop:
+ j halt_loop
+
+.section .data
+
+
+.section .bss
+
+.section .stack
+ .space 0x1000 # Allocate stack space
+stack_top: