Here is my code .data A: .word 10, 160, 20, 70,60,140,150,80,90,100,110,30,40,12
ID: 3600891 • Letter: H
Question
Here is my code
.data
A: .word 10, 160, 20, 70,60,140,150,80,90,100,110,30,40,120,130,50
Asize: .word 10
ShiftAmount: .word 4
minValue .word "Minimum Value: "
maxValue .word " Maximum Value:"
values .word " Values divisible by 4:"
.text
main:
la $a0, A
la $a1, N
jal MaxMin
MaxMin:
lw $t0, 0($a)
swap:
move $t0, $s0
move $s0, $s1
move $s0, $t0
Explanation / Answer
.data
A: .word 10, 160, 20, 70,60,140,150,80,90,100,110,30,40,120,130,50
Asize: .word 10
ShiftAmount: .word 4
minValue .word "Minimum Value: "
maxValue .word " Maximum Value:"
values .word " Values divisible by 4:"
.text
main:
la $a0, A
la $a1, N
jal MaxMin
MaxMin:
lw $t0, 0($a)
swap:
move $t0, $s0
move $s0, $s1
move $s0, $t0
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.