Scott Larson wrote: > Hi all, > > After reading the MPASM guide I am still lost as to how to reserve a data > section in a specific bank. > For example, I'd like the following reservations to all be placed in bank 0 > (without having to specify the starting address). Currently, it's all being > placed in bank 1. Much of the point of using the linker is not to have to care about where the variables ends up in memory. Maybe it would help if you describe why you'd like these to be in bank0 ? If you want fast access, UDATA_SHR might be better. Apart from that, you can create your own segments in the LKR file to place UDATA blocks right where yopu want. Jan-Erik. > > UDATA > COP8IN res 1 ;buffer > COP8W res 1 ;working register for rotating > COP8BITS res 1 ;count the number of bits read in > > GPSIN res 1 ;buffer > GPSW res 1 ;working register for rotating > GPSBITS res 1 ;count the number of bits read in > > SEROUT res 1 ;buffer > SERW res 1 ;working register for rotating > SERBITS res 1 ;count the number of bits written out > > BUFFER res 8 ;allocate memory for circular buffer and head & tail pointers > BUFHEAD res 1 > BUFTAIL res 1 > > > I think it's irrelevant, but I'm using the 12F683. I'm sure Olin has some > preprocessor directives to do this, but can I do it natively in MPLAB? > > > Thanks, > > Scott -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist