summaryrefslogtreecommitdiff
path: root/main.asm
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-05-12 00:33:10 +0200
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-05-12 00:33:10 +0200
commit7642349be93be4a1acf62e9c5ca831f918ba1c3c (patch)
tree71a97352d57e4ac11db1505292caf0ac3427c005 /main.asm
parent1f48837af82e5bc226b62b509d61986c2b82f11b (diff)
Load ELF into emulator
Diffstat (limited to 'main.asm')
-rw-r--r--main.asm9
1 files changed, 9 insertions, 0 deletions
diff --git a/main.asm b/main.asm
new file mode 100644
index 0000000..e90d6a2
--- /dev/null
+++ b/main.asm
@@ -0,0 +1,9 @@
+.section .text
+.global _main
+_main:
+ li x1, 5
+ addi x2, x1, 45
+
+loop:
+ addi x2, x2, 1
+ j loop