To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 260
259  |  261
Subject: 
Re: signals / legOS internals
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Wed, 23 Jun 1999 01:40:05 GMT
Viewed: 
1076 times
  
Kekoa Proudfoot wrote:

Reading this again, I should mention that pushing things on the stack
asynchronously is fine, as long as the stack pointer is always in the right
place, which is why it must always always always point to the location I
mentioned (and seemingly the location you also knew about).

Your misunderstanding is probably with regard to what a "push" operation
does.  It moves the stack pointer down, not up -- down into free space.
There is no problem.

I may have down and up reversed, since different machines grow the stack
upward or downward, and I've worked with a few.  I do have push and pop
clear in my mind, though.

So, yeah, down.  So, by the "always" rule, nothing will ever be below
the stack pointer until such time as it is pushed there.



Message is in Reply To:
  Re: signals / legOS internals
 
(...) Reading this again, I should mention that pushing things on the stack asynchronously is fine, as long as the stack pointer is always in the right place, which is why it must always always always point to the location I mentioned (and seemingly (...) (25 years ago, 23-Jun-99, to lugnet.robotics.rcx.legos)

32 Messages in This Thread:









Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR