1
如何在MIPS中找到具有已知長度的用戶輸入字符串中的特定字符?然而,我看到的以及許多其他網站,似乎從根本上無法解釋如何操縱用戶輸入數據。在MIPS中查找字符串的字符
這是我到目前爲止有:
A_string:
.space 11
buffer:
asciiz"Is this inputed string 10 chars long?"
main:
la $a0, buffer
li $v0, 4
syscall
li $v0, 8
la $a0, A_string
li $a1, 11
syscall