If there are two register A and B in microcontroller, I use PUSH A, PUSH B and then use POP A, POP B, what will happen? I thinked the content of B will give to A, and the content of A will give to B.Is it right?Another thing, if SP is the stack pointer, it can point to the middle of the stack not the top of it. and then use POP instruction will get the content of SP that point to. What I understanding is right or wrong? My operation may be something crazy, but I just want to know the stack deeply.
- posted
18 years ago