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 / 1796
1795  |  1797
Subject: 
direct manipulation of bits in RCX registers using NQC
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Mon, 12 Sep 2005 22:58:48 GMT
Viewed: 
5613 times
  
Hi all,

Can anyone tell me if it is possible to use NQC to directly set bits in RCX
registers? And if so, how does one do it?

I've seen C code examples of this in a few places, but no NQC examples.

Specifically, I want to turn on and off the red LED in a LEGO light sensor
brick, *without* disabling the light sensor itself. Apparently, the power for
this LED is mapped to bits 0-2 of "port 6" (an RCX register).

Thanks,

Matt Jones



Message has 1 Reply:
  Re: direct manipulation of bits in RCX registers using NQC
 
(...) Perhaps - but the standard firmware implements a "virtual machine", and so you don't generally have access to physical registers. But... (...) You can configure the input port that the light sensor is connected to as a "passive" sensor (so (...) (19 years ago, 13-Sep-05, to lugnet.robotics.rcx.nqc)

13 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