I want to define a table of constants like this:
code const unsigned char bit_count_table[16] = { 0, 1, .... 4 };
?CO?ASMSUBS SEGMENT CONST
I tried various combinations of 'code' and 'const' to no avail. In the end I rewrote the function with the table in assembler defined using 'DB' values and that solved my immediate problem. Thanks to all.