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.
我有一个任务,我提示输入一个单词。然后单词的字符存储在一个堆栈中,从那里我必须确定这个单词是否是回文。
我想知道如何将一封信推入堆栈?这只是我的代码的开始。一旦我弄清楚如何推动单词的每个字母,我应该很高兴:
s1: DC "Enter string:" STACK: EQU 0x100000 lui sp, STACK >> 12 addi x5, x0, s1 ecall x1, x5, 4; ecall x5, x0, 8;