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

Search found 3 matches
CCS Forum Index
Author Message
  Topic: signed shift right - compiler generates incorrect code!
Amolf

Replies: 4
Views: 9446

PostForum: General CCS C Discussion   Posted: Wed Jun 22, 2011 6:54 am   Subject: signed shift right - compiler generates incorrect code!
Hi Ttelmah,

I did not know about the official/original C standard.
but I expected to keep the sign while shifting right..

After adding the line
#device ANSI
the result is still the same... ...
  Topic: signed shift right - compiler generates incorrect code!
Amolf

Replies: 4
Views: 9446

PostForum: General CCS C Discussion   Posted: Wed Jun 22, 2011 3:36 am   Subject: signed shift right - compiler generates incorrect code!
I need to divide a number by 8, so I use the shift right command for speed, but the results are wrong for negative values !!!!

The compiler uses RRCF but fails to set the initial sign bit to the ca ...
  Topic: Support for new chips with older compiler
Amolf

Replies: 1
Views: 3567

PostForum: General CCS C Discussion   Posted: Thu Jun 09, 2011 4:28 am   Subject: Support for new chips with older compiler
Hello,

The CCS PIC compiler I have (v4.099) does not support the exact version of the chip I bought (a PIC18F44k22).

What is the best way to proceed?

- just select a 18F44k20 or 18F4420, 18F ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group