Unfortunately, the program will not runproperly, because two instructions are wr
ID: 3610625 • Letter: U
Question
Unfortunately, the program will not runproperly, because two instructions are wrong. What are they? i cantfind it see the J should not go main, and insted of lwshould bee load lb what is the rest, when i try to run it, itrepet 1234a or aaaa. so please helpme
.text
main: la $t2,number
li $v0,11
load: lw $a0,0($t2)
beqz $a0,done
blt $a0,0x30,filter
bgt $a0,0x39,filter
syscall
nexlet: addi $t2,$t2,1
j load
filter: blt $a0,0x61,nexlet
bgt $a0,0x7a,nexlet
syscall
j main
done: li $v0,10
syscall
.data
number: .asciiz "1234abcdEF56GHi89"
Explanation / Answer
Sorry if i was unclear, anyway the program should print out the nr 0-9 and a-z lower case is what i understood , because two instructions are wrong. it cant do it, so it is two instructions which are wrong, What are they?
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.