Hello, please help me to write program in assembly (MIPS) I have a word "hello!" and I need the mips prints next:
h
he
hel
hell
hello
hello!
I tried this:
.data
lbl1: .asciiz "hello!"
lbl2: .asciiz "h "
end_line: .asciiz "\n"
.text
main: la $s0, lbl1
move $a0, $s0
addi $v0, $zero, 4
syscall jr $ra
but it prints me all the string and i need only one letter or two.
thanks for help