Answer the question
In order to leave comments, you need to log in
Outputting array elements in a MIPS Assembly loop?
Hello! You need to output the elements of the array of strings in a loop one by one. Here's the assignment: Write a program which uses a loop to print the strings to the display. Your program should use the instr_count as a loop counter, and should print one string per execution of the loop.
.data
instr_count: .word 9
first_pass: .asciiz “add $2,$1,$1”
.space 9
.asciiz “add $3,$0,$2”
.space 9
.asciiz “add $3,$3,$3”
.space 9
.asciiz “add $4,$3,$0”
.space 9
.asciiz “beq $3,$0,done”
.space 7
.asciiz “sub $3,$3,$1”
.space 9
.asciiz “j loop”
.space 15
.asciiz “sw $2,0($0)”
.space 10
.asciiz “lw $1,-2($4)”
.space 9
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question