??? 04/12/04 14:58 Read: times |
#68365 - RE: Assembly works but C... Responding to: ???'s previous message |
Hi,
erik malund wrote: ------------------------------- My following C code is not working... how? What does it do? This is my first C program, What it does is jsut toggles the output at 2 ports. No much significance. Just to get a hang of C #include <intrins.h> void LongDelay(); what is intrins.h, why? Its for _nop_(); Does "void LongDelay();" not give you a warning or an error? No there are no errors or warning messages. I dont want to use STARTUP.A51, what are the steps to be taken. create a piece of code that does the same. I just want to entry to my main(), how do i do that. Or can I have a sample of STARTUP.A51... in your Keil directory I have been trying to understand and edit the same file...till now no success I made some changes for to STARTUP.A51 after going through http://www.keil.com/support/docs/2659.htm but still my code doesnt work. Why make changes BEFORE your code works? mucking with the "normal" before things work is a surefire recipe for disaster. Once your code works you will "know" (what a strange word, does "guess" not sound so much better?) that if something goes wrong after your changes it is due to your changes in startup. This is done only to understand the C environment... Regards Raj Shetgar |
Topic | Author | Date |
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 |