off the top of my head this is what i came up with (untested):
Code:
array var byte[8]
array_rotated var byte[8]
bit_num var byte
byte_num var byte
temp var byte
result var byte
for byte_num=0 to 7
for bit_num=0 to 7
temp=array[7-bit_num]
temp=temp>>byte_num
result=result<<1
result.0=temp.0
next bit_num
array_rotated[byte_num]=result
next byte_num
*edit* fixed some mistakes
*edit* fixed one last mistake
Last edited by Kamikaze47; - 15th February 2010 at 07:05.
"I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams
Bookmarks