There is a big change in
MPLAB IDE 7.52 that directly affects users programming in ASM30 (assembly code for 16-bit devices). If you have C30 installed and select to build with the
C30 Toolsuite rather than the ASM30 toolsuite, the project manager will now pass your assembly source file to the pic30-gcc.exe compilation shell.
Files ending in a .S (capitalized S) will be passed through the C preprocessor. This means that you can now use C preprocessor directives, such as
#define, in .S files.
The image blow shows a simple example, but I'm sure that there are better uses for this
highly requested feature.
Edit: 1 March 2007
I created a short video showing a project using ASM30 files with the C30 preprocessor. The video is low rez, I hope you can see what is going on. Remember 1) Use the Microchip C30 Toolsuite, 2) Add the file to your project with the .S (capitalized) extension.
Video: Preprocessing an ASM30 file with MPLAB IDE 7.52
No comments:
Post a Comment