CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Manchester Code Reader
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Thu Feb 26, 2009 4:10 am     Reply with quote

I see, that it's perfectly working. You can use general C programing as well, but it's slower.

P.S.: You can also use CCS C shift_left() and similar functions.
viknes1985



Joined: 11 Nov 2008
Posts: 24

View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger

my output
PostPosted: Thu Feb 26, 2009 11:33 pm     Reply with quote

I getting

FF
FF
FF
FF
FF
FF
FF
FF

apparently i guess, shift_left cannot be used at here. If it shifted to left, the MSB will lost. Am i right? I tried "rotate_left (address, bytes)" function, but it's not dealing with the carry.... So any idea.

Thanks in advance
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Thu Feb 26, 2009 11:59 pm     Reply with quote

Your original code is shifting in one bit (through carry flag)- If it's constantly "1", the array will show all FF, at least after 64 shifts.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group