added all example programs

This commit is contained in:
black
2025-07-09 22:42:51 +02:00
parent 03207c13db
commit 35b434ec77
10 changed files with 77 additions and 1 deletions

9
beispielprogramme/9.txt Normal file
View File

@@ -0,0 +1,9 @@
addi x1, x0, 21 # x1 = 21
jal x5, double # Aufruf: ra in x5
# nach Rueckkehr enthaelt x6 das Resultat
j end
double:
slli x6, x1, 1 # x6 = x1 << 1 = x1 2
jalr x0, 0(x5) # Ruecksprung ueber r a
end:
# x6 = 42