Subject:
|
Re: Just some really basic questions...
|
Newsgroups:
|
lugnet.robotics.rcx.nqc
|
Date:
|
Mon, 29 Jan 2001 18:03:35 GMT
|
Viewed:
|
2018 times
|
| |
| |
Krusty wrote:
> Okay, cool, so I get 5 slots (my bad...I knew that too...I don't know *why*
> I kept saying 3) and the TOTAL space I can use is 6k? Does that include the
> datalog feature?
Yes. To be more precise I believe it's 6100 bytes of space. (The SCOUT has 400
bytes of space)
> Can you pass variables into other programs? How do you use
> these 'Codes (1-255)'? I mean, not specifically how you use them, I mean,
> how do you *use* them? What are some practical applications? Can a 'code'
> signal a jump to another function? like code 7 jump here, code 43 jump here,
> etc...
if message = 5 then jump off table...
It's that easy...
> What's the difference between running 1 of the 5 programs and passing
> between programs and simply putting the whole program in one slot and just
> jumping between functions?
Well if you can keep all the code in one program it's easier. But you get 32
global variables. All programs can read them. So you can leave your 'bits' where
you want them and jump to another program to use them.
You get 10 tasks that you can start and stop per program. They all run at the
same time.
Dean
--
Coin-Op's For Sale!: http://www.akasa.bc.ca/tfm/coin-op.html
Dean's Lego Workshop: http://www.akasa.bc.ca/tfm/lego_wr.html
Vancouver Lego Club: http://www.akasa.bc.ca/vlc
|
|
Message has 1 Reply: | | Re: Just some really basic questions...
|
| (...) Dean, I am not sure that this is correct what you write about global variables. As far as I know, the followoing is correct: - 32 global variables are only valid WITHIN one program slot. - Within this slot, all tasks, functions and subroutines (...) (24 years ago, 30-Jan-01, to lugnet.robotics.rcx.nqc)
|
Message is in Reply To:
| | Re: Just some really basic questions...
|
| Okay, cool, so I get 5 slots (my bad...I knew that too...I don't know *why* I kept saying 3) and the TOTAL space I can use is 6k? Does that include the datalog feature? Can you pass variables into other programs? How do you use these 'Codes (...) (24 years ago, 29-Jan-01, to lugnet.robotics.rcx.nqc)
|
9 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|