在 MIPS 中一次循环 1 个字符的字符串
我在理解 MIPS 中字符串和字符的概念时遇到问题。如果我试图循环两个字符串,并一次连接两个字符,我该怎么做?
可以说我有
String1 = "St"
String2 = "ack"
我如何循环才能
Sa, Sc, Sk, ta, tc, tk
提前得到感谢!
I'm having issues grasping the concept of string and characters in MIPS. If I'm trying to loop through two strings, and concatenate two characters at a time, how would I do this?
Lets say I have
String1 = "St"
String2 = "ack"
How could I loop through to get
Sa, Sc, Sk, ta, tc, tk
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
最简单的方法是:
1)用C编写程序
。2)用带有标志“-S”的GCC编译它,并使用“> xx.S”将汇编代码存储到文件中。
3)从“xx.S”中提取汇编代码。
the most easy way to do this:
1)write the program with C.
2)compile it with GCC with flags "-S", and use "> xx.S" to store the assembly code to a file.
3)extract the assembly codes from "xx.S".
无法弄清楚,我使用的 MIPS 环境显然内置了一些东西。
Wasn't able to figure it out, the MIPS environment I used had something built in apparently.