lbu $t0,string
It loads one byte (located at string) into
the low order byte of register $t0.
The other bytes are filled with zero.
Here is the outline of the program. The comments are for the major sections of the program.
.text
.globl main
main:
# ________________________
# ________________________
# ________________________
# ________________________
.data
str: .space 128 # character buffer
Not much of an outline. Luckily, here are some phrases you can use to fill in the blanks: print the reversed string, push each character onto the stack, input the string into a buffer, and pop chars from stack back into the buffer.