I'm using the Raspberry Pi to learn ARM assembly. I'm still beginning but I would like to know how I can read the values of argv.
I figured out that the value of argc is held in register 0 (r0) at the beginning of a program, but I can't figure out where the argv value is stored. I assume it's somewhere in the stack, but I'm not able to find it.
Can someone help with this?
Edit: So the answer I marked as correct allowed me to find the values of argv. To summarize, the value of argc is found in register r0 when the program launches. r1 contains an address to an array of addresses. These addresses point to the relevant values of argv.