Assembler Directives

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Assembler Directives

跳至解决方案
4,702 次查看
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. ?
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,713 次查看
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 项奖励
回复
2 回复数
1,714 次查看
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 项奖励
回复
1,713 次查看
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 项奖励
回复