View Single Post
Old Dec 4th, 2006, 3:33 PM   #19
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
You shift in a loop until you have shifted as many times as there are bits in the register or registers in question. Again, I can't give you specifics, such as how to output a value; I don't know the MIPS. Still, these operations should be a part of your documentation. Almost bound to be a syscall for it. At least, you have those. When you start with a raw micro and no library stuff, you have to write it all.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote