diff options
| author | Carlos Maiolino <[email protected]> | 2025-07-10 22:18:39 +0200 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2025-07-10 22:18:39 +0200 |
| commit | 8c6fc0c15415b32080a848bbde640e104098cf13 (patch) | |
| tree | 04a21bd28f9dc82c8e216390d6208ed93b9bcd11 /riscv/exit | |
Initial drop
Add some riscv code
Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'riscv/exit')
| -rwxr-xr-x | riscv/exit/exit.rv | bin | 0 -> 860 bytes | |||
| -rw-r--r-- | riscv/exit/exit.s | 5 | ||||
| -rw-r--r-- | riscv/exit/main.s | 5 |
3 files changed, 10 insertions, 0 deletions
diff --git a/riscv/exit/exit.rv b/riscv/exit/exit.rv Binary files differnew file mode 100755 index 0000000..370f2dc --- /dev/null +++ b/riscv/exit/exit.rv 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 |
