commit f71671ef4bd19ce39b4c93729e8c723d5b0ca46d
parent 39b4ba82adb467d3d923dc9928016a9cf4b5221f
Author: Gabriel G. de Brito <gabrielgbrito@icloud.com>
Date: Tue, 26 Dec 2023 23:39:21 -0300
Added RISC-V hello world example
Diffstat:
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git a/riscv/hello-world.asm b/riscv/hello-world.asm
@@ -0,0 +1,13 @@
+;;
+;; RISC-V Hello World for the EGG emulator.
+;;
+
+_start:
+ addi a7, zero, 3
+ addi a0, zero, msg
+ addi a1, zero, 14
+ ecall
+ ebreak
+
+msg:
+#Hello, World!%0a