@37:00 I was a bit confused that substracting 12 from the stack pointer (addi $sp $sp -12) helps allocate space on the stack, but then quickly found out that the stack grows "downwards" in memory 🙂 Now I get why function call can only take a limited number of arguments and otherwise you work with pointers (I guess).
@shouyudu9364 ай бұрын
Yeah, you can always store the extra arguments onto the stack before calling the function, and the function can retrieve it from the stack at the beginning.