Usually I don’t have problems writing assembly and testing and debugging. But then sometimes the compiler doesn’t like the newline character and I don’t know why. This problem usually happens with the Berkeley spim simulator
sample code:
.text
.globl __start
__start:
la $a0,crlf
li $v0,4
syscall
li $v0,10
syscall
.data
crlf: .asciiz “\n”
what am I doing wrong?
Another way to do it would be
This is what I use when \n gives me issues.