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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/25/09 22:52
Read: times


 
Msg Score: -1
 -1 Didn't Search First
#162844 - Bin in C
HI,

How can I assign a value in binary
to a variable using the C ANSI ?

as in assembler > mov a,#00001001B ; 9 in bin

Calix

List of 15 messages in thread
TopicAuthorDate
Bin in C            01/01/70 00:00      
   Possible solution            01/01/70 00:00      
      You need to check if this works with your compiler            01/01/70 00:00      
         Does it work with any?            01/01/70 00:00      
            popular demand            01/01/70 00:00      
   My compiler is IAR            01/01/70 00:00      
      because that's a non-standard (non-ANSI) extension            01/01/70 00:00      
      What made you beleive that it would work?            01/01/70 00:00      
   Use #define names            01/01/70 00:00      
      Yes, but...            01/01/70 00:00      
   Use macros for that.            01/01/70 00:00      
   facilitates my understanding            01/01/70 00:00      
      Working with flags            01/01/70 00:00      
         how I do it            01/01/70 00:00      
   I use a macro            01/01/70 00:00      

Back to Subject List