projects
/
info3
/
asm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kommentare eingefuegt
[info3/asm.git]
/
loesung4-2.s
diff --git
a/loesung4-2.s
b/loesung4-2.s
index
10607e1
..
d467535
100644
(file)
--- a/
loesung4-2.s
+++ b/
loesung4-2.s
@@
-1,6
+1,9
@@
; blatt 4
; aufgabe 2
; blatt 4
; aufgabe 2
+; hier mach ich nicht wirklich intervallschachtelung.
+; daher folgt das mit intervallschachtelung gleich im anschluss.
+
.data
text: .asciiz "input: "
.align 2
.data
text: .asciiz "input: "
.align 2
@@
-19,9
+22,6
@@
loop:
addi r2,r2,1
add r3,r0,r1
mult r6,r2,r2
addi r2,r2,1
add r3,r0,r1
mult r6,r2,r2
-j check
-
-check:
beqz r3,end
beqz r6,loop
subi r6,r6,1
beqz r3,end
beqz r6,loop
subi r6,r6,1