To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.nxtOpen lugnet.robotics.nxt in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / NXT / 752
751  |  753
Subject: 
Re: bitwise operators
Newsgroups: 
lugnet.robotics.nxt
Date: 
Thu, 24 May 2007 14:25:06 GMT
Viewed: 
22211 times
  
In lugnet.robotics.nxt, Elizabeth Mabrey wrote:
I looked thru the doc, it looks like it does not allow bitwise operators
like IOR, XOR, AND, etc.   Is this correct? Or, I have overlooked something?



Are you talking about NXC or NBC or some other programming language?  The
standard NXT firmware does support bitwise logical operators such as and, or,
and xor.  In both NXC and NBC you can use these operations as you would expect
in a C-like language and an assembly language.  Section 2.4 of the NXC Guide
describes the various operators that can be used within an expression in NXC,
including the &, ^, and | operators which are bitwise and, xor, and or.  These
should all work correctly in NXC and if they do not then it's a bug in NXC.

John Hansen



Message has 1 Reply:
  Re: bitwise operators
 
(...) ...and if you are talking about NXT-G, there is a bitwise manipulation block, written by Mike Gasperi and Steve Hassenplug, available here: (URL) list of available blocks is here: (URL) (17 years ago, 25-May-07, to lugnet.robotics.nxt)

Message is in Reply To:
  bitwise operators
 
I looked thru the doc, it looks like it does not allow bitwise operators like IOR, XOR, AND, etc. Is this correct? Or, I have overlooked something? --thanks Elizabeth (17 years ago, 24-May-07, to lugnet.robotics.nxt)

3 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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR