ARM assembly - access parameter vs return value?
问题 I have a function prototype int Palindrome(const char *c_style_string); In ARM v8 assembly, I believe that the parameter is stored in register w0. However, isn't this also the register that ret outputs the value of? If so, what do I need to do so that values do not get overwritten? I was thinking something like mov w0, w1 at the beginning of my code so that I refer to c_style_string as w1 whenever I parse through it, and then edit w0 to store an int...would this be right? Thank you! 回答1: You