Hi all, I defined some symbols in my assembly module. But I also need to use them in my C files. I don't want to define it twice at different places. How can I make those constants visible in C file? For example, I define a constant in .a66 like following, Kf_100_init equ 20133 What I want to do in a C file is, freq = tmp * Kf_100_init;
1) Use a compile-time constant instead of linkable symbol. I.e. turn your EQU into a #define found in a header file #include'd by both the assembler and the C code. Does assembler recognize '#define' statement? I will try it.
"Does assembler recognize '#define' statement? I will try it." Like I said originally: "I dunno about A166, but A51 can accept C51 header files. "Have a check in your A166 Manual to see if the same applies... "