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

21 bit max ? !

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Don P



Joined: 26 Aug 2004
Posts: 23
Location: California

View user's profile Send private message

21 bit max ? !
PostPosted: Tue Jan 25, 2005 6:39 pm     Reply with quote

I define a variable as int32.

Using "0b" binary notation to equate it to a constant, it won't compile if I specify more than 21 bits. Is this known?

Regards,
Don
rwyoung



Joined: 12 Nov 2003
Posts: 563
Location: Lawrence, KS USA

View user's profile Send private message Send e-mail

PostPosted: Tue Jan 25, 2005 7:28 pm     Reply with quote

Can you post with your compiler version number and short (but complete) program demonstrating the issue?
_________________
Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month!
Don P



Joined: 26 Aug 2004
Posts: 23
Location: California

View user's profile Send private message

PostPosted: Tue Jan 25, 2005 7:41 pm     Reply with quote

#include <16F628.h>
int32 X ;
void Main()
{
X = 0b11110000111100001 ; // add another digit and you get
// *** Error 76 "junk.c" Line 5(24,25): Expect ;

}

I used to know where to find the compiler ersion, but it's not apparent since it's combined with MPLAN 6.60
Tell me where.
Regards,
Don
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jan 25, 2005 9:06 pm     Reply with quote

Quote:
I used to know where to find the compiler version

There are at least three ways to find the compiler version.

1. Compile a test file, and look at the top of the .LST file.
It will show the version.

2. Click on Start/ Programs, and then find the entry for CCS.
It might be called "PIC-C". Then click on the icon for "Compiler Version".

2. Open a DOS window and go to c:\Program Files\Picc
and run this command line: CCSC +v
Don P



Joined: 26 Aug 2004
Posts: 23
Location: California

View user's profile Send private message

PostPosted: Tue Jan 25, 2005 9:35 pm     Reply with quote

Ah ha !

ver 3.152
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

works OK in 3.216 and 3.190
PostPosted: Tue Jan 25, 2005 10:04 pm     Reply with quote

Version 3.216 and both 3.190 work OK, no problem
Don P



Joined: 26 Aug 2004
Posts: 23
Location: California

View user's profile Send private message

PostPosted: Tue Jan 25, 2005 10:32 pm     Reply with quote

OK, unless it's a free upgrade, I can live with it.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
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