View previous topic :: View next topic |
Author |
Message |
Fabri
Joined: 22 Aug 2005 Posts: 275
|
C compiled part inside assembler |
Posted: Mon Nov 14, 2005 2:40 am |
|
|
Hi everybody,
I have an old project compiled in assembler with MPLAB. Now I want to include a new part compiled in C.
1) Is it Possible ?
2) Is there any example somewere ?
Thanks for support,
Regards, |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
[email protected] Guest
|
mixing C and assembler |
Posted: Tue Dec 13, 2005 2:13 pm |
|
|
I'm using CCS PCH v3.214 with MPLAB 7.10 and MPASM etc 3.90.01.
The project was originally written in assembler, and then some floating point stuff was added using C. I have the source but not the tools. My tools (above) won't compile/assemble and link this.
Do I need different tools? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Dec 13, 2005 5:29 pm |
|
|
Either get new tools, or convert the ASM code into C. |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
|
|
Posted: Tue Dec 13, 2005 7:22 pm |
|
|
If you have the assembler source code you can use CCS's mini assembler and embedd the code in your C code. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Dec 13, 2005 7:47 pm |
|
|
Yes, but people are always complaining that they can't
do everything they want with the CCS inline assembler. |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
|
|
Posted: Tue Dec 13, 2005 8:12 pm |
|
|
PCM programmer wrote: | Yes, but people are always complaining that they can't
do everything they want with the CCS inline assembler. |
On one hand I agree with them. It is a pain that it doesn't , especially not supporting all the FSRs, but on the otherhand its not rocket science to change the affected code. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
|