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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/26/06 17:05
Read: times


 
#108399 - Question about pointers with C
I'm just getting started with C and the 8051. I have decent experience with assembly, but not so much with C. Here's my question. What is the difference between these two lines of code besides the fact that they are mapping different things. Specifically, what does the first "*" do for me in the second line.

#define timers ((dual_timers *)0x03FF6000


#define RAM0_ADDR (*(char far *)0x0D0000)


Thanks,
Dave

List of 24 messages in thread
TopicAuthorDate
Question about pointers with C            01/01/70 00:00      
   Eh???            01/01/70 00:00      
      Compiler            01/01/70 00:00      
         is that the Keil compiler you are using?            01/01/70 00:00      
            Keil compiler            01/01/70 00:00      
               keil has '51, '251, '16x, ARM which?            01/01/70 00:00      
                  A51            01/01/70 00:00      
                      You mean C51 ?            01/01/70 00:00      
                        then what is this addressing?            01/01/70 00:00      
                           Addressing a RAM chip            01/01/70 00:00      
                              Addressing a RAM chip            01/01/70 00:00      
                                 ah banking            01/01/70 00:00      
                                    80c51 Addressing            01/01/70 00:00      
                                       Pedantic            01/01/70 00:00      
                                          ridiculous            01/01/70 00:00      
                                             because            01/01/70 00:00      
   Dereference            01/01/70 00:00      
      Pointer hints            01/01/70 00:00      
         No, that's wrong            01/01/70 00:00      
            struct modelling memory-mapped IO            01/01/70 00:00      
            I think it is time to stop replies to            01/01/70 00:00      
            More pedantically            01/01/70 00:00      
      Pointer hints            01/01/70 00:00      
   start small            01/01/70 00:00      

Back to Subject List