Assembler Directives

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Assembler Directives

Jump to solution
3,844 Views
bpaehr
Contributor IV
I am fairly new to using Codewarrior for the HC9S12 Microcontroller.  Is there any documentation that properly defines how to properly use all of the Assembler Directives such as #define, #ifdef, #endif, etc. ?
Labels (1)
Tags (1)
0 Kudos
1 Solution
855 Views
CrasyCat
Specialist III
I am a little bit confused here. The directive you have been referring to are ANSI C preprocessing directives.
 
If you are interested to learn around Macro assembler directive look at following user manual {Install}\help\pdf\Manual_Assembler_HC12.pdf (Where {Install} refers to your root installation directory).
There is a chapter there called "Assembler Directives" there, which list and explain all assembly directives.
 
If you are looking for compiler preprocessing directives would recommend you to refer to an ANSI C programming book for more information around them.
There is a list of supported preprocessor directives in the manual {Install}\help\pdf\Manual_Compiler_HC12.pdf.
In chapter "ANSI C Front End", you find a list of supported keywords and preprocessing directives.
 
I hope this help.
 
 

View solution in original post

0 Kudos
2 Replies
856 Views
CrasyCat
Specialist III
I am a little bit confused here. The directive you have been referring to are ANSI C preprocessing directives.
 
If you are interested to learn around Macro assembler directive look at following user manual {Install}\help\pdf\Manual_Assembler_HC12.pdf (Where {Install} refers to your root installation directory).
There is a chapter there called "Assembler Directives" there, which list and explain all assembly directives.
 
If you are looking for compiler preprocessing directives would recommend you to refer to an ANSI C programming book for more information around them.
There is a list of supported preprocessor directives in the manual {Install}\help\pdf\Manual_Compiler_HC12.pdf.
In chapter "ANSI C Front End", you find a list of supported keywords and preprocessing directives.
 
I hope this help.
 
 
0 Kudos
855 Views
bpaehr
Contributor IV

Sorry.  Shows you how little I know about these things.

Thanks for the info.  You pointed me in the general direction.  I found that Assembler_HC12 Manual via a different path, but I DID find it.  I wanted to know how to perform conditional assembly, and the section on Conditional Assembly Directives was what I needed.

Thanks for your help.

0 Kudos