This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem: Table of constants in an ASMed C file

I want to define a table of constants like this:

code const unsigned char bit_count_table[16] = 	{	0, 1, .... 4 };
in a C source file built with the ASM option.

I get error A24: SEGMENT TYPE EXPECTED

with a reference to this line of code in the .src file:
?CO?ASMSUBS          SEGMENT CONST
What am I doing wrong?