summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2016-10-31 12:28:40 +0100
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2016-10-31 12:28:40 +0100
commit5986707670280a679b50951c6e5a3188e274119c (patch)
treef28b8fcdba931ac894672e0819fcb556bdabdd92
parentbde810ca26e138d952af64ece36a6feb765499b6 (diff)
downloaduni-5986707670280a679b50951c6e5a3188e274119c.tar
uni-5986707670280a679b50951c6e5a3188e274119c.tar.gz
uni-5986707670280a679b50951c6e5a3188e274119c.tar.bz2
uni-5986707670280a679b50951c6e5a3188e274119c.tar.xz
uni-5986707670280a679b50951c6e5a3188e274119c.zip
Uncomitted work from last semester
-rw-r--r--ss2016/carch/05/abgabe.xojbin0 -> 15408 bytes
-rw-r--r--ss2016/carch/05/manifest2
-rw-r--r--ss2016/carch/05/simple.s53
-rw-r--r--ss2016/carch/05/simple.xojbin0 -> 53559 bytes
-rw-r--r--ss2016/lds/04/H4-1.xojbin0 -> 72891 bytes
-rw-r--r--ss2016/lds/04/H4-2.xojbin0 -> 61838 bytes
-rw-r--r--ss2016/lds/04/H4-3.xojbin0 -> 59750 bytes
-rw-r--r--ss2016/lds/04/manifest3
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 @@
1abgabe.pdf
2simple.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
2str1: .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"
4askstr: .asciiz "\n?-> "
5errstr: .asciiz "Sie dürfen nur Zahlen zwischen 1 und 99 eingeben.\n"
6answstr:.asciiz "Das Ergebnis lautet: "
7str2: .asciiz "\n\n"
8
9 .text
10main: li $s0, 0
11 li $s1, 0
12
13 li $v0, 4
14 la $a0, str1
15 syscall
16
17loop: 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
35error: li $v0, 4
36 la $a0, errstr
37 syscall
38 j loop
39
40exit: 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 @@
1H4-1.pdf
2H4-2.pdf
3H4-3.pdf