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

Re: [MiNT] what's wrong with this code?



man, 15,.08.2005 kl. 20.50 +0200, skrev Johan Klockars:

> Uhm...
> In what universe does a 680x0 RTE pull any stack pointer what-so-ever 
> from the stack?
> 
> On the stack you'll only find (for a Trap on a 680x0, x > 0):
> 0(a7).w  - SR
> 2(a7).l  -  return address
> 6(a7).w  - vector offset    (not there on the 68000)
> 
> No stack pointer is ever saved before entering an exception handler, nor 
> restored on RTE.
> There are physically separate registers for the various stack pointers, 
> which just get "remapped" in hardware depending on the bits in SR.

 You're right.