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 / 24383
24382  |  24384
Subject: 
Re: Rotating through a four-bit nibble
Newsgroups: 
lugnet.robotics
Date: 
Thu, 22 Sep 2005 10:37:14 GMT
Reply-To: 
Geoffrey Hyde <gdothyde@IHATESPAMbigponddotnetdotau>
Viewed: 
2073 times
  
"Jordan Bradford" <bradfj23REMOVE_THIS_SPAM_THINGY@uwosh.edu> wrote in
message news:In7A20.1sK1@lugnet.com...
In lugnet.robotics, Kevin L. Clague wrote:
Why in the world wouldn't the firmware support shifting? The hardware
<http://www.delorie.com/gnu/docs/binutils/as_236.html certainly does>.

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

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 principle explained, partway down the page:

http://www.evergreen.edu/biophysics/technotes/misc/bin_math.htm

A link to binary addition and subtraction, from HowStuffWorks article on
binary (it's actually a framed link to a different site, may have to cut out
the frame addition if it doesn't work properly), note how it essentially
works the same as decimal multiplication/division - also partway down the
page.

http://computer.howstuffworks.com/framed.htm?parent=bytes.htm&url=http://www.math.grin.edu/~rebelsky/Courses/152/97F/Readings/student-binary.html

Hope this helps you understand it better!  :)


--
Cheers ...

Geoffrey Hyde



Message has 1 Reply:
  Re: Rotating through a four-bit nibble
 
(...) Understand what better? Binary math? No problems with that! By "backwards" I meant that multiplication and division by powers of 2 are usually changed to shift L/R by compilers. Also, I am amused that because the firmware doesn't use the (...) (19 years ago, 22-Sep-05, to lugnet.robotics, FTX)

Message is in Reply To:
  Re: Rotating through a four-bit nibble
 
(...) Why in the world wouldn't the firmware support shifting? The hardware (URL) certainly does>. Heh, using multiply and divide to simulate shifting is kind of backwards. (19 years ago, 22-Sep-05, to lugnet.robotics, FTX)

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