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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/13/04 10:27
Read: times


 
#68409 - RE: Assembly works but C...
Responding to: ???'s previous message
You could try to code C to ASM using a compiler directive.

Then you are able to see what the compiler generates! A debugging tool can also solve many starters problems.

#pragma src

can be used in keil...

Try first .. solid coding to see if your hardware is working fine.

main()
{
P0 = 0xaa;
while (1);
}

compile and test

main ()
{
p0 = 0x55;
while (1);
}

compile and test... this should give you some indication of the problem. In assembler pretty easy to see what happens.

the startup file clears your RAM (and initialize some registers for some CPU's).

Have fun ...


List of 22 messages in thread
TopicAuthorDate
Assembly works but C...            01/01/70 00:00      
   RE: Assembly works but C...            01/01/70 00:00      
      RE: Assembly works but C...            01/01/70 00:00      
         RE: Assembly works but C...            01/01/70 00:00      
            RE: Assembly works but C...            01/01/70 00:00      
               RE: Assembly works but C...            01/01/70 00:00      
   RE: Assembly works but C...            01/01/70 00:00      
      RE: Assembly works but C...            01/01/70 00:00      
         STARTUP.A51            01/01/70 00:00      
            RE: STARTUP.A51            01/01/70 00:00      
               RE: STARTUP.A51            01/01/70 00:00      
                  Stand Still...            01/01/70 00:00      
                     RE: Stand Still...            01/01/70 00:00      
                  RE: STARTUP.A51            01/01/70 00:00      
               RE: STARTUP.A51            01/01/70 00:00      
         function for LCD in C...            01/01/70 00:00      
            RE: function for LCD in C...            01/01/70 00:00      
      RE: Assembly works but C...            01/01/70 00:00      
         RE: Assembly works but C...            01/01/70 00:00      
            RE: Assembly works but C...            01/01/70 00:00      
               RE: Assembly works but C...            01/01/70 00:00      
            RE: Assembly works but C...            01/01/70 00:00      

Back to Subject List