From 7ff0d605067d57f638da50e53eb4a7dbb7ef11e6 Mon Sep 17 00:00:00 2001 From: Flavian Kaufmann Date: Wed, 8 May 2024 12:12:09 +0200 Subject: build assembly files --- prog/main.bin | Bin 16 -> 0 bytes prog/main.elf | Bin 8764 -> 0 bytes prog/main.hex | 16 ---------------- prog/main.o | Bin 4880 -> 0 bytes prog/main.s | 24 ------------------------ prog/src/prog.s | 24 ++++++++++++++++++++++++ 6 files changed, 24 insertions(+), 40 deletions(-) delete mode 100755 prog/main.bin delete mode 100755 prog/main.elf delete mode 100644 prog/main.hex delete mode 100644 prog/main.o delete mode 100644 prog/main.s create mode 100644 prog/src/prog.s (limited to 'prog') diff --git a/prog/main.bin b/prog/main.bin deleted file mode 100755 index ba70022..0000000 Binary files a/prog/main.bin and /dev/null differ diff --git a/prog/main.elf b/prog/main.elf deleted file mode 100755 index 4c53d74..0000000 Binary files a/prog/main.elf and /dev/null differ diff --git a/prog/main.hex b/prog/main.hex deleted file mode 100644 index 116b9b4..0000000 --- a/prog/main.hex +++ /dev/null @@ -1,16 +0,0 @@ -93 -02 -50 -00 -13 -03 -30 -00 -b3 -83 -62 -00 -6f -00 -00 -00 diff --git a/prog/main.o b/prog/main.o deleted file mode 100644 index e50c4a8..0000000 Binary files a/prog/main.o and /dev/null differ 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: diff --git a/prog/src/prog.s b/prog/src/prog.s new file mode 100644 index 0000000..bbae5bb --- /dev/null +++ b/prog/src/prog.s @@ -0,0 +1,24 @@ +.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: -- cgit v1.2.3