|
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
|
|
|
|