diff options
Diffstat (limited to 'ss2016')
| -rw-r--r-- | ss2016/carch/05/abgabe.xoj | bin | 0 -> 15408 bytes | |||
| -rw-r--r-- | ss2016/carch/05/manifest | 2 | ||||
| -rw-r--r-- | ss2016/carch/05/simple.s | 53 | ||||
| -rw-r--r-- | ss2016/carch/05/simple.xoj | bin | 0 -> 53559 bytes | |||
| -rw-r--r-- | ss2016/lds/04/H4-1.xoj | bin | 0 -> 72891 bytes | |||
| -rw-r--r-- | ss2016/lds/04/H4-2.xoj | bin | 0 -> 61838 bytes | |||
| -rw-r--r-- | ss2016/lds/04/H4-3.xoj | bin | 0 -> 59750 bytes | |||
| -rw-r--r-- | ss2016/lds/04/manifest | 3 |
8 files changed, 58 insertions, 0 deletions
diff --git a/ss2016/carch/05/abgabe.xoj b/ss2016/carch/05/abgabe.xoj new file mode 100644 index 0000000..9b35792 --- /dev/null +++ b/ss2016/carch/05/abgabe.xoj | |||
| Binary files differ | |||
diff --git a/ss2016/carch/05/manifest b/ss2016/carch/05/manifest new file mode 100644 index 0000000..dcea477 --- /dev/null +++ b/ss2016/carch/05/manifest | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | abgabe.pdf | ||
| 2 | simple.pdf | ||
diff --git a/ss2016/carch/05/simple.s b/ss2016/carch/05/simple.s new file mode 100644 index 0000000..d4895b2 --- /dev/null +++ b/ss2016/carch/05/simple.s | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | .data | ||
| 2 | str1: .ascii "Geben Sie beliebig viele Zahlen zwischen 1 und 99 ein.\n" | ||
| 3 | .asciiz "Eingabe von 0 beendet die Eingabe und gibt das Ergebnis aus.\n" | ||
| 4 | askstr: .asciiz "\n?-> " | ||
| 5 | errstr: .asciiz "Sie dürfen nur Zahlen zwischen 1 und 99 eingeben.\n" | ||
| 6 | answstr:.asciiz "Das Ergebnis lautet: " | ||
| 7 | str2: .asciiz "\n\n" | ||
| 8 | |||
| 9 | .text | ||
| 10 | main: li $s0, 0 | ||
| 11 | li $s1, 0 | ||
| 12 | |||
| 13 | li $v0, 4 | ||
| 14 | la $a0, str1 | ||
| 15 | syscall | ||
| 16 | |||
| 17 | loop: li $v0, 4 | ||
| 18 | la $a0, askstr | ||
| 19 | syscall | ||
| 20 | |||
| 21 | li $v0, 5 | ||
| 22 | syscall | ||
| 23 | li $t2, 99 | ||
| 24 | bgt $v0, $t2, error | ||
| 25 | li $t2, 0 | ||
| 26 | blt $v0, $t2, error | ||
| 27 | beqz $v0, exit | ||
| 28 | addi $s1, $s1, 1 | ||
| 29 | mul $t2, $v0, $v0 | ||
| 30 | mul $t2, $t2, $s1 | ||
| 31 | add $s0, $s0, $t2 | ||
| 32 | |||
| 33 | j loop | ||
| 34 | |||
| 35 | error: li $v0, 4 | ||
| 36 | la $a0, errstr | ||
| 37 | syscall | ||
| 38 | j loop | ||
| 39 | |||
| 40 | exit: li $v0, 4 | ||
| 41 | la $a0, answstr | ||
| 42 | syscall | ||
| 43 | |||
| 44 | li $v0, 1 | ||
| 45 | move $a0, $s0 | ||
| 46 | syscall | ||
| 47 | |||
| 48 | li $v0, 4 | ||
| 49 | la $a0, str2 | ||
| 50 | syscall | ||
| 51 | |||
| 52 | li $v0, 10 | ||
| 53 | syscall | ||
diff --git a/ss2016/carch/05/simple.xoj b/ss2016/carch/05/simple.xoj new file mode 100644 index 0000000..2ffeefc --- /dev/null +++ b/ss2016/carch/05/simple.xoj | |||
| Binary files differ | |||
diff --git a/ss2016/lds/04/H4-1.xoj b/ss2016/lds/04/H4-1.xoj new file mode 100644 index 0000000..ca4c41b --- /dev/null +++ b/ss2016/lds/04/H4-1.xoj | |||
| Binary files differ | |||
diff --git a/ss2016/lds/04/H4-2.xoj b/ss2016/lds/04/H4-2.xoj new file mode 100644 index 0000000..71b1603 --- /dev/null +++ b/ss2016/lds/04/H4-2.xoj | |||
| Binary files differ | |||
diff --git a/ss2016/lds/04/H4-3.xoj b/ss2016/lds/04/H4-3.xoj new file mode 100644 index 0000000..ed9310b --- /dev/null +++ b/ss2016/lds/04/H4-3.xoj | |||
| Binary files differ | |||
diff --git a/ss2016/lds/04/manifest b/ss2016/lds/04/manifest new file mode 100644 index 0000000..ab32460 --- /dev/null +++ b/ss2016/lds/04/manifest | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | H4-1.pdf | ||
| 2 | H4-2.pdf | ||
| 3 | H4-3.pdf | ||
