Initial commit

This commit is contained in:
Never Gude 2026-04-30 16:08:36 +02:00
commit a1ddfdb7c0
14 changed files with 599 additions and 0 deletions

18
exercise_2/task1.txt Normal file
View file

@ -0,0 +1,18 @@
0 R5 <- 4
1 R6 <- R0 - R5
2 IF R6 = 0 GOTO 5 // Wenn R0 <= 4 wird der RR0 / 5 berechnet, sonst wird 0 zurückgegeben
3 R0 <- 0
4 GOTO 17
5 R5 <- 5
6 R7 <- 0
7 R8 <- 1
8 R9 <- RR0
9 R6 <- R5 - R9
10 IF R6 = 0 GOTO 13 // Wenn RR0 >= 5 wird RR0 - 5 berechnet und R7 inkrementiert, sonst wird R7 zurückgegeben
11 R0 <- R7
12 GOTO 16
13 R6 <- R9 - R5
14 RR0 <- R6
15 R7 <- R7 + R8
16 GOTO 8
17 STOP