Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须为 MIPS 体系结构编写一个小程序。更具体地说,它应该是一个接受寄存器并打印它的值的过程。允许使用除调用 print_int 之外的所有内容。我的程序是: 1. 将给定的寄存器拆分为数字 2. 将它们转换为 ascii 3. 将它们存储在堆栈中 我现在在堆栈中有 52 或 53 之类的值,我想用 print_string 打印它们,但我该如何实现这?谢谢你的帮助。
你写3. 将它们存储在堆栈上。由于您可以使用除调用 print_int 之外的所有内容,为什么不在使用print_string输出结果之前将它们存储在连续的内存字节中。