2

如何在 MIPS 程序集中声明一个没有初始化的字符串变量?然后它从用户那里收到一笔金额。

例如:string judge;

4

1 回答 1

1

通过使用.space指令保留一些空间:

.data
foo: .space 100  # Reserve 100 bytes of space

.text
la $a0, foo      # Load the address of foo
# Do whatever
于 2015-10-30T06:22:59.373 回答