Gday Mel
I have been watching this post with interest.
I know the array id method listed works for 16F876s 16F84s and 16F88s,
but looking at the datasheets Ports A,B and C are all contiguous in memory
ie x05, x06 etc.
on 12/3 this year PeterDeco posted re a similar problem, and whilst misinterpreting the post, tried portA.0 + X rather than portA.0(X), and said this also worked.
Based on the fact "PortA" just gets referenced to its memory locn via the include files, say x05 in a 16f88, is it possible ( knowing the memory map for the specific pic/variant ), to use a calculated reference point, rather than assume the bits are contiguous and ref by array practices.
Basically, what i am saying is do the functions that "expect a port" reference need it to come in as a standard symbol, or would the correct memory offset ( as a variable ) suffice.
I cant test, as i dont know how to make it fail currently ( under the old method ) with the chips i normally play with.
Andrew