diff options
| author | Eugen Wissner <belka@caraus.de> | 2024-09-21 23:35:32 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2024-09-21 23:35:32 +0200 |
| commit | daec506ed3f90e61c6a3c4d5b38c19e28ebb1978 (patch) | |
| tree | 147a08333e608e1c57471075ccbd7a06a8c542cf /tools/builtin.s | |
| parent | 0a8d3fce2f2797b95b22ea3577d2514621c850fc (diff) | |
| download | elna-daec506ed3f90e61c6a3c4d5b38c19e28ebb1978.tar.gz | |
Put _start and main call into builtins
Diffstat (limited to 'tools/builtin.s')
| -rw-r--r-- | tools/builtin.s | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/builtin.s b/tools/builtin.s index 6fc43f6..6274b2e 100644 --- a/tools/builtin.s +++ b/tools/builtin.s @@ -1,6 +1,12 @@ +.global main +.type main, @function + .global printi .type printi, @function +.global _start +.type _start, @function + .text printi: addi sp, sp, -8 @@ -27,3 +33,9 @@ printi: lw ra, 4(sp) addi sp, sp, 8 ret + +_start: + call "main" + addi a0, zero, 0 + addi a7, zero, 93 + ecall |
