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 / 487
486  |  488
Subject: 
Re: asm in NQC.
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Thu, 2 Mar 2000 02:06:12 GMT
Viewed: 
1848 times
  
In article <38BCD443.DB8EBC42@doitnow.com>, "John C. Quillan"
<quillan@doitnow.com> wrote:

All,

I have tried various ways to put asembly in my
NQC programs.  I have copied stuff from the header
files but it does not work.

I would like to use the slope parameter of the
SetSensorMode opcode, but NCQ does not support
this.  That is why I need to asm it.


You don't really need asm to do this.  Due to a side-effect of how the
bytecodes are implemented, you can set the slope value simply by adding
it to the 'mode' parameter...

// use a slope of 10 for light sensor on port 1
SetSensorType(SENSOR_1, SENSOR_TYPE_LIGHT);
SetSensorMode(SENSOR_1, SENSOR_MODE_BOOL + 10);

Dave Baum

--
reply to: dbaum at enteract dot com



Message is in Reply To:
  asm in NQC.
 
All, I have tried various ways to put asembly in my NQC programs. I have copied stuff from the header files but it does not work. I would like to use the slope parameter of the SetSensorMode opcode, but NCQ does not support this. That is why I need (...) (25 years ago, 1-Mar-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