To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.org.ca.rtltorontoOpen lugnet.org.ca.rtltoronto in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Organizations / Canada / rtlToronto / 3198
3197  |  3199
Subject: 
Re: Programming, NQC and the RCX
Newsgroups: 
lugnet.org.ca.rtltoronto
Date: 
Thu, 10 Jan 2002 18:09:15 GMT
Viewed: 
444 times
  
In lugnet.org.ca.rtltoronto, David Koudys writes:
In lugnet.org.ca.rtltoronto, Ka-On Lee writes:
Rememeber to count all local variables, since they are not really local
in RCXCC. Total number of usable variables are 32 for RCX 1.x.  But I think • the

32 variables???????  That's all????

i need more!

How do I get room for more variables???

Well RCX 2.0 firmware give you 32 global+16 local variables, according to
NQC docs.  LegOS should give you a lot more freedom in memory usage, but I
haven't try that yet.

For the X project, I plan to use bit manipulation to store all I need in two
variables.  For each square I only need two bits to store the 3 states -
unknown, filled and empty.  However NQC has some limitation on what bit
operators can do.

Hack I am still seating on my butt and haven't even start building the arm yet.
Oh well it is gona snow that weekend... :-p



Message is in Reply To:
  Re: Programming, NQC and the RCX
 
(...) 32 variables??????? That's all???? i need more! How do I get room for more variables??? If not, oh well, must modify and have *sloppy* code :( Dave (23 years ago, 10-Jan-02, to lugnet.org.ca.rtltoronto)

6 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