STACK arrangement AT90S8515

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Can someone help me? If the 16-bit PC gets PUSHED into the STACK by a RCALL instruction. The STACK will store the return address in two bites 8-bits wide, nl. upper and lower bite. If you do a POP instruction, witch bite will be POPED, the upper or lower bite in the STACK.

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

I am not sure if this is the answer you are looking for but the stack operates on a last in first out basis. Therefore based on your question the lower byte would be available first (unless of course the software changes the stack pointer which is another ball game).

I hope this helped and did not confuse you any further!

Regards,
nuttall

admin's test signature