I am working on a MIPS code and I cannot get it to run correctly. Please see attached image for correct output. I need my code to be fixed and I need the last print part to be added (the part that prints #)
sentence: .asciiz "coming in winners of three in a row, including back-to-back triumphs on the road, the knights returned to orlando hungry to finish out the regular season home schedule on a high note."
word: .asciiz "KNIGHTS"
space: .asciiz ": ----------- "
newLine: .asciiz "\n"
la $a1, sentence
la $a2, word
lb $t2, 0($a2) # loads msb of a2 to t2
beqz $t2, exit1 # check for the null character
lb $t1, 0($a1) # loads msb of a1 to t1
li $t0, 0 # sets counter to 0
move $a0, $t2 # moves value of t2 to a0
li $v0, 11
la $a0, space
li $v0, 4
beqz $t1, continue
beq $t1, $t2, increment
addi $a1, $a1, 1 # Moves to next letter in word
lb $t1, 0($a1)
#li $v0, 4 # test
#la $a0, word # test
addi $t0, $t0, 1 # adds to the counter
addi $a1, $a1, 1 # adds to the other counter
#lb $t1, 0($a1)
move $a0, $t0
li $v0, 1
la $a0, newLine
li $v0, 4
addi $a2, $a2, 1
Bu iş için 2 freelancer ortalamada $20/saat teklif veriyor
hello sir i have good experience in mips this project easy for me when i complete it you can check and then you can accept my bid feel free to message me :)