Re: A89: Save while Archived?


[Prev][Next][Index][Thread]

Re: A89: Save while Archived?





> Yeah, a7 is the stack POINTER.  Its 4 bytes yeah.  But it points to
> the stack which is yeah i guess about 4000 bytes is about right.  In 
> TI's "documentation" they use "SP" for stack pointer.  Is this an
> alternative thing to using a7 for the stack pointer?  But of course
> most routines that use the stack have used a7 for the stack pointer
> so it probably wouldnt be such a good idea.

SP is the same as A7.  It's just used so that it will be more clear
that the hardware stack is being accessed.  The code works exactly the
same regardless of whether you use A7 or SP.

The user stack is 4000 bytes in size.  However, that's 4000 *hex*
which is equivalent to 16,384 decimal.


References: