Greetings, I'm attempting to call a routine written in assembly from C. I use uVison with the windows IDE. THe problem I have is that the linker does not seem to include the assembly file. Whe I debug the C code, the disassembly of that shows "0x0000" for the call address. Is there a good tutorial that has a step, by step description of this process? I've read the Keil manuals and they are of little help. Any suggestions will be appreciated. Dave
Have you added the assembly source file to the uVision Project?
Yes, I added the *.a51 file to the project. When I build the project, I can see that the file is being assembled.
Hm. I'm using some assembler routines. I don't remember any special trick. Since there's not a lot of information given, forgive me if I stumble about while guessing: Are the routines shown in your map file? Do you get any linker errors? What does your linker configuration look like? What does your assembly file say with respect to segment declaration? It should contain lines like:
?ASM_MYSEG SEGMENT CODE RSEG ?ASM_MYSEG