Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/07/04 20:18
Read: times


 
#82719 - How about rotate left?
Responding to: ???'s previous message
Thanks for the pointer Joe!!



I think I have got a better way. If I increase my table to 32 16 bit numbers, then I can just rotate the entire 24 bit sum to the left 3 bits, and drop the low byte.

for example 1600x32=51200 or C800h
or
r4 r3 r2
00000000_11001000_00000000

after I rotate it 3 to the left.

00000110_01000000_00000000

drop the lowest r2 and I get

06_40h or 1600d

now I know how to rotate an 8 bit number like that.. How do I rotate a 24 bit number?

Thanks in advance for your suggestions!!!

List of 8 messages in thread
TopicAuthorDate
24bit /8bit long division            01/01/70 00:00      
   24bit /8bit long division            01/01/70 00:00      
      How about rotate left?            01/01/70 00:00      
         multibyte rotate            01/01/70 00:00      
            Compact code            01/01/70 00:00      
               Rotate in hardware.            01/01/70 00:00      
         Yes, that's better            01/01/70 00:00      
            Some other suggestions            01/01/70 00:00      

Back to Subject List