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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/03/09 13:43
Read: times


 
#168108 - That shoots down the reason to use C:
Responding to: ???'s previous message
Andy Neil said:
For Keil C51 at least, that's not true - it does give you access to the Carry Flag but you have absolutely no guarantee whatsoever that the value of the carry flag is the value from your arithmetic operation!


Yep. And that kills pretty much the only reason to use C in this case: Portability. Even if you get the code to work right with C51, it's completely non-portable since it relies on features that are exclusive to Keil C51.

I wonder why Keil chose to include such a nonsensical feature. They may just as well return a random value and claim that it's the carry flag - it's equally useful (useless).

List of 7 messages in thread
TopicAuthorDate
Hexadecimal Arithmetic            01/01/70 00:00      
   Cross-post            01/01/70 00:00      
   C is really unsuited for this purpose.            01/01/70 00:00      
      RE: 'C' does not allow access to the carry flag            01/01/70 00:00      
         That shoots down the reason to use C:            01/01/70 00:00      
   hexadecimal arithmetic            01/01/70 00:00      
      You already have answers to that question!            01/01/70 00:00      

Back to Subject List