From 8c6fc0c15415b32080a848bbde640e104098cf13 Mon Sep 17 00:00:00 2001 From: Carlos Maiolino Date: Thu, 10 Jul 2025 22:18:39 +0200 Subject: Initial drop Add some riscv code Signed-off-by: Carlos Maiolino --- riscv/exit/exit.rv | Bin 0 -> 860 bytes riscv/exit/exit.s | 5 +++++ riscv/exit/main.s | 5 +++++ 3 files changed, 10 insertions(+) create mode 100755 riscv/exit/exit.rv create mode 100644 riscv/exit/exit.s create mode 100644 riscv/exit/main.s (limited to 'riscv/exit') diff --git a/riscv/exit/exit.rv b/riscv/exit/exit.rv new file mode 100755 index 0000000..370f2dc Binary files /dev/null and b/riscv/exit/exit.rv differ diff --git a/riscv/exit/exit.s b/riscv/exit/exit.s new file mode 100644 index 0000000..5e55de5 --- /dev/null +++ b/riscv/exit/exit.s @@ -0,0 +1,5 @@ +.globl exit +exit: + li a0, 24 + li a7, 93 + ecall diff --git a/riscv/exit/main.s b/riscv/exit/main.s new file mode 100644 index 0000000..426ea4c --- /dev/null +++ b/riscv/exit/main.s @@ -0,0 +1,5 @@ +.globl _start +_start: + li a0, 10 + li a1, 20 + jal exit -- cgit v1.2.3