Hello,
I am working on a project which includes C as well as Assembly code.
I have a function declarations as follows
#define USE_FUNCTION 1 int function1(void); int function2(void); #if USE_FUNCTION #define _FUNCTION function1 #else #define _FUNCTION function2 #endif
I have to call these function from assembly routines as per the definition of FUNCTION the code snippet as follows,
LCR #_FUNCTION
if I call it the following way "assembler/compiler" throws error :
The following symbols are undefined: FUNCTION
(I have included the header file of function definition in .asm code.)
So, questions :
1. I have to use FUNCTION in C as well as Assembly, How can I successfully call FUNCTION from the assembly.