Results 1 to 2 of 2
for example, a theoretical machine that operates on 8-bit bytes (aka an 8-bit machine). say that 8-bit rotate and 8-bit shift have been implemented in hardware. and that you can ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-14-2010 #1
- Join Date
- Jul 2009
how do you do multi-word shifts and rotates?
and that you can do an arbitrary number of shifts or rotates (0-7) on the 8-bit byte in one instruction/cycle.
this machine would be a theoretical stack machine as well, so things would be pushed onto the stack with the return value on top of the stack.
so are there any algorithms (in software, using instructions like those i mentioned) to rotate or shift thru an arbitrary number of bytes?
- 09-14-2010 #2
An algorithm? To multiply or divide by two? That's not much of an algorithm...Linux user #126863 - see http://linuxcounter.net/