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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/05/04 06:57
Read: times


 
#75445 - Help with intrins function Keil V7.09
Hi,

I have tried rotating 2 bytes as follows using the _cror_ function but the result in temp2 is not correct.Can anyone tell me what I'm doing wrong?
(Buf[],temp1 and temp2 are all unsigned char's)

---

temp1 = _cror_(Buf[1],1); /* rotate by 1 */
temp2 = _cror_(Buf[2],2); /* rotate by 2 */

--

I want to simply rotate the byte in Buf[x] but not through the "Carry".Is there another way of doing this?

List of 9 messages in thread
TopicAuthorDate
Help with intrins function Keil V7.09            01/01/70 00:00      
   RE:Help with intrins function Keil V7.09            01/01/70 00:00      
   RE: Help with intrins function Keil V7.09            01/01/70 00:00      
      RE: Help with intrins function Keil V7.09            01/01/70 00:00      
         RE: Help with intrins function Keil V7.09            01/01/70 00:00      
            RE: Help with intrins function Keil V7.09            01/01/70 00:00      
               RE: Help with intrins function Keil V7.09            01/01/70 00:00      
            RE: Help with intrins function Keil V7.09            01/01/70 00:00      
   RE: Help with intrins function Keil V7.09            01/01/70 00:00      

Back to Subject List