mips反向输出字符串
能力有限,只写出了规定大小的字符串反转,已在MARS4_5调试,可运行,欢迎指正,话不多说,直接上代码
.data
promt1: .asciiz "input string shorter than 20\n"
promt2: .asciiz "the after-string is:"
str: .space 100
trans_str: .asciiz " "
.text
.globl main
main: li $v0,4
la $a0,promt1
s
原创
2021-05-10 16:30:43 ·
1018 阅读 ·
1 评论