projects
/
info3
/
asm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
added 3
[info3/asm.git]
/
loesung1-3.s
1
; blatt 1
2
; aufgabe 3
3
4
.data 0x200
5
basis: .word 0x05
6
; wir berechnen 5
7
exponent: .word 0x03
8
; hoch 3
9
ergebnis: .space 4
10
; und bekommn hoffentlich 125 = 0x7d
11
12
.text
13
14
addi r5,r0,basis
15
addi r6,r0,exponent
16
lw r1,(r5)
17
lw r2,(r6)
18
addi r3,r0,1
19
20
J routine
21
22
routine:
23
beqz r2,end
24
mult r3,r3,r1
25
subi r2,r2,1
26
J routine
27
end:
28
sw ergebnis,r3