diff options
author | Flavian Kaufmann <flavian@flaviankaufmann.ch> | 2024-05-08 12:12:09 +0200 |
---|---|---|
committer | Flavian Kaufmann <flavian@flaviankaufmann.ch> | 2024-05-08 12:12:09 +0200 |
commit | 7ff0d605067d57f638da50e53eb4a7dbb7ef11e6 (patch) | |
tree | 96b198b1e2d961d0ae713e086420a003b7307666 /prog/main.s | |
parent | d1133b1f41d426482cb54b747caada8427654b3a (diff) | |
download | riscv_cpu-7ff0d605067d57f638da50e53eb4a7dbb7ef11e6.tar.gz riscv_cpu-7ff0d605067d57f638da50e53eb4a7dbb7ef11e6.zip |
build assembly files
Diffstat (limited to 'prog/main.s')
-rw-r--r-- | prog/main.s | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/prog/main.s b/prog/main.s deleted file mode 100644 index bbae5bb..0000000 --- a/prog/main.s +++ /dev/null @@ -1,24 +0,0 @@ -.section .text -.globl _start - -_start: - #la sp, stack_top - - #li a0, 10 - #li a1, 20 - #add a2, a0, a1 - addi t0, zero, 5 - addi t1, zero, 3 - add t2, t0, t1 - -halt_loop: - j halt_loop - -.section .data - - -.section .bss - -.section .stack - .space 0x1000 # Allocate stack space -stack_top: |