Jan-Erik Soderholm wrote: > Hi. > > I'm loooking at starting up my first 16F1xxx project. > It will be the 16F1938 (on the "PICkit 28-pin demo board"). > > Now, these PICs has something called "linear memory" where > GPR from the (up to) 32 banks are combined into one linear > area without holes or jumps. Fine so far. But how do I "use" > this area? I know of the usual UDATA and UDATA_SHR but I > expected something like UDATA_LIN to specificaly allocate > memory from that area. > > Normal UDATA allocation will not cross banks, right? > > Maybe using UDATA together with a hardcoded adress in the > linear area ? But that defeets the automatic allocation. > > Anyone who has used this memory area for (e.g.) buffers > larger then one single bank? This is another late answer. When we implimentated support for the extended 14bit ISA we assumed we had linear memory only and then used the optimizer to sort out how to access the banked memory or linear memory based on generated code and execution time. This approach solved most of the problems of address holes. Regards Walter Banks Byte Craft Limited --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .