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 support@ccsinfo.com

bit operator == in PCM v3.207

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



Joined: 24 Aug 2004
Posts: 2
Location: Germany

View user's profile Send private message

bit operator == in PCM v3.207
PostPosted: Tue Aug 24, 2004 12:35 am     Reply with quote

Hi to all,

I've found a problem with the "optimized" == operator for bit variables in v3.207:

EinAus_b1 bit adress is ".3"....normally..and as you can see in the lst-file, the "==" Operator asks for bit adress .0

.lst file:

Code:

....................    if(EinAus_b1 == 0) 
1317:  BTFSC  49.0     <--- ???
1318:  GOTO   31D
....................    { 
....................       delay_us(2); 
1319:  NOP
131A:  NOP
131B:  NOP
131C:  NOP
....................    } 
....................   
....................    if(!EinAus_b1) 
131D:  BTFSC  49.3  <--- ok
131E:  GOTO   323
....................    { 
....................       delay_us(2); 
131F:  NOP
1320:  NOP
1321:  NOP
1322:  NOP
....................    } 
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Tue Aug 24, 2004 8:40 am     Reply with quote

A very annoying bug and it will effect many programs!

This same bug in v3.207 was reported 5 days ago in this thread.
Juergen



Joined: 24 Aug 2004
Posts: 2
Location: Germany

View user's profile Send private message

PostPosted: Wed Aug 25, 2004 12:24 am     Reply with quote

yes, this will affect many many programs and I can't believe the dilettantish testing of the "optimized" == bit operation.

Juergen
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