added cs672 lab2 files
git-svn-id: svn://anubis/gvsu@414 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
1 parent
a713c9a097
commit
4b39b69c2a
2 files changed
+17
No files matched your search
@@ -0,0 +1,17 @@
|
||||
add r4, r0, r0 ; clear R4 = 0
|
||||
add r5, r0, r0 ; clear R5 = 0
|
||||
|
||||
addi r1, r0, 5 ; set R1 (loop counter) = 5
|
||||
|
||||
LOOP: subi r1, r1, 1 ; decrement R1
|
||||
addi r4, r4, 2 ; R4 = R4 + 2
|
||||
bnez r1, LOOP ; if (r1 != 0), goto LOOP
|
||||
addi r5, r5, 10 ; R5 = R5 + 10
|
||||
|
||||
add r6, r4, r5 ; R6 = R4 + R5
|
||||
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
trap #0
|
||||
Binary file not shown.
Reference in new issue
Block a user