[Top][All Lists]

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

Re: [avr-gcc-list] 2 tricky questions

From: Joerg Wunsch
Subject: Re: [avr-gcc-list] 2 tricky questions
Date: Tue, 17 Jun 2003 15:51:42 +0200 (MET DST)

"Marko Panger AGB Lab" <address@hidden> wrote:

> Who said the opposite ? Please read carefully what I was asking,
> come on.

Your wording is ambiguous enough to make this quite difficult, sorry.

> If I somehow (in an elegant way) manage to put and address on the
> stack (after the return instruction) where will the reti instruction
> jump ?  After that I dont care any more of the return address.

There's no "return instruction" on the stack.  There's just a return
address pushed on it.  Of course, you're free to manipulate it in any
way, so the reti instruction will jump to something else than what has
been interrupted.  That's a common method for an operating system to
implement scheduling.  The location of the return address on the stack
can easily be computed.

> I was asking for a total different thing and
> I hope I will solve this as Iztok or Tvrtko suggested.

Yes, i think you can do it that way.

J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]