To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 793
792  |  794
Subject: 
Scout's Built-In 29 Subroutines & NQC?
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Sat, 30 Sep 2000 06:56:34 GMT
Viewed: 
1854 times
  
I've been re-reading the Scout SDK and came across the following:

"Program Block Library (subroutines)
The Scout has an extensive subroutine library of general-purpose
functions that can help reduce the size of downloaded user
programs. Many of the subroutines expect parameters to be passed in
local variables as outlined below.
The built-in subroutines are numbered 3-32 whereas user subroutines are
numbered 0-2."

I haven't seen any mention of these in NQC? Is is supported?

I wrote my first Scout program today. I had to lop off 1 command because
I ran out of memory. It's not a very big program. So I consider the
above essential if we are to use the whopping 1k or RAM. (How much do we
get for code?)

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: Scout's Built-In 29 Subroutines & NQC?
 
(...) In the old Scout API there were two calls: #define local(n) (@((n) + 10)) void Call(const int n) { asm { 0x17, n }; } You can enable the API by adding -D__SCOUT_COMPAT on the command line, or just copy the above two lines into your program. (...) (24 years ago, 30-Sep-00, to lugnet.robotics.rcx.nqc)

2 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