Re: Rotating through a four-bit nibble

"Geoffrey Hyde" <[email protected]>
Newsgroups gmane.comp.hardware.lego.robotics
Organization None
Message-ID <[email protected]>
"Jordan Bradford" <[email protected]> wrote in 
message news:[email protected]...
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.