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:
6 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|