To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 24382
24381  |  24383
Subject: 
Re: Rotating through a four-bit nibble
Newsgroups: 
lugnet.robotics
Date: 
Thu, 22 Sep 2005 04:06:00 GMT
Viewed: 
1418 times
  
In lugnet.robotics, Kevin L. Clague wrote:
   LEGO firmware does not support the concept of shifting. Originally NQC didn’t support the concept of shifting. I pointed out to Dave Baum that he could use multiply and divide to support shifting, so he added it to NQC. It has been many years, but I think shifting is only allowed with constant shift amounts.

Why in the world wouldn’t the firmware support shifting? The hardware certainly does.

Heh, using multiply and divide to simulate shifting is kind of backwards.



Message has 1 Reply:
  Re: Rotating through a four-bit nibble
 
"Jordan Bradford" <bradfj23REMOVE_THIS...uwosh.edu> wrote in message news:In7A20.1sK1@lugnet.com... (...) The problem is, multiplication and division to a binary CPU, as is the case here, is just a whole series of instructions. Here is the basic (...) (19 years ago, 22-Sep-05, to lugnet.robotics)

Message is in Reply To:
  Re: Rotating through a four-bit nibble
 
(...) Well, your example has the nibble of interest in the middle of the register. Due to boundary conditions, it might be cheaper to have it in the least significant bits of the 16 bit register. In your example you are rotating by an aribtrary (...) (19 years ago, 21-Sep-05, to lugnet.robotics)

13 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