Rename assembly examples
RENAME
examples/assembly/Complex multiplication
examples/assembly/complexMul.s
@@ -34,7 +34,9 @@ main:
li a7, 1
ecall
- j end # Jump to end of program
+ # Exit program
+ li a7, 10
+ ecall
myMult:
li t0, 32 # Iteration variable
@@ -102,5 +104,3 @@ complexMul:
lw ra, 16(sp) # Reload return address from stack
addi sp, sp, 28 # Restore stack pointer
jr x1
-
-end:nop

RENAME
examples/assembly/Console printing
examples/assembly/consolePrinting.s
@@ -71,5 +71,6 @@ loop:
jr x1
exit:
+ # Exit program
li a7, 10
ecall

RENAME
examples/assembly/Factorial function
examples/assembly/factorial.s
MODIFY
examples/examples.qrc
examples/examples.qrc
<RCC>
<qresource prefix="/examples">
- <file>assembly/Complex multiplication</file>
- <file>assembly/Factorial function</file>
- <file>assembly/Console printing</file>
<file>ELF/RanPi</file>
<file>C/ranpi.c</file>
<file>C/io.c</file>
<file>C/matrixmul.c</file>
+ <file>assembly/factorial.s</file>
+ <file>assembly/complexMul.s</file>
+ <file>assembly/consolePrinting.s</file>
</qresource>
</RCC>

Rename assembly examples