Topic : C preprocessor in ASM

Forum : Ride IDE

Original Post
Post Information Post
November 13, 2008 - 11:18am
Guest

Hello,

I want to add an assembly file to my project. The problem is that there are some "#define"s used in the code, so I need to apply the C preprocessor to the assembly file. How can I do that? There is onother solution?

I want to describe why I need to use the #define. In an assembly program generaly we prefer using nouns instead of registers, then defining each noun by the corresponding register. It makes easier the code understanding.

Regards
Sword_82

Replies
Post Information Post
+1
0
-1
November 17, 2008 - 11:17am
Guest

Hi everybody!

I've found it, we use .req:
#define Var r0 => Var .req r0

regards