lord loh. said:
Yes... I have been thinking and simulating all day...
I am thinking of an extreme case... Where 128 registers are not enough... My PIC is supposed to send packets over an RF link... And a packet means a lot of data with CRC and overheads etc.
What I found was that the linker build fails if a variable or a part of it declared in one udata section overflows from the bank it is currently being defined in into another bank...It is not allowed....
So one has to manage variables in such a way by starting the udata at the begining of the bank so that maximum size of variables can be declared. If I start at FE, I can have only teo bytes.... One at FE and the other at FF. Should I try to define a 3rd byte, there is a build fail.