arduino - Assembly Stack Pointer AVR -


Hello friends have a quick question to me, but one I have not been able to answer yet. I appreciate some help with it:

  LDI R31, 0   

I'm not sure what this does, but before that I Loading stack pointer is equal to high $ 08 and less than $ 5F (I know that this is the RAMEND definition for the end of memory for my Arduino). Can anyone please explain that what will happen to the stack / stack pointer? I know that the R31 is used as a high byte, but I'm not sure what it will do for the heap of my existing values.

This is a very small part of my homework, but I think it is necessary to understand thanks!

R31 is part of Z Register, an alias for RIS: R30 X, Y, and Z The indirect address of the registers is used by some assembly instructions. See LDI R 31, 0 set from 31 to 0. It has no effect on stack or stack pointer.

It seems that you are looking at some assembly codes, especially near the beginning of the program, usually it is where the si runtime launches the stack pointer and the RAM, among other things. The variables of your program that are initialized in the source code, their initial values ​​will be copied from the data section, which is in the RAM at the end of the program code, where they actually live. Jade register is useful for this purpose, because this program makes the loop easier through data.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -