我对mips有点新,我试图将.asciiz变量设置为等于另一个,然后打印出来。这就是我所拥有的:
.data
s: .asciiz "I never could get the hang of Thursdays."
s2: .space 50
.text
main:
la $t0, s
la $t1, s2
lbu $t2, 0($t0)
sb $t2, 0($t1)
la $a0, s2
li $v0, 4
syscall
li $v0, 10
syscall
但是,我一次只能打印一个字节。如何打印整个字符串?