John Coppens wrote 2012-08-07 23:27: > On Tue, 7 Aug 2012 14:08:06 -0700 (PDT) > Mauricio Giovagnini wrote: > >> My 2 cents here. It has been a while since I don't code fluently in ass= embly but If I remember correctly I think he could also use overlay data, s= o he can place reg1_hdr, reg1_len and reg1_rest starting at the same locati= on as reg1 > > Hello Mauricio, > > Thanks for the suggestion, but I believe the #define solution is more > simple. > > If I were to use overlays, I probably would have to do the extra work > of locating the overlay section manually, wouldn't I? > You use UDATA_OVR. All UDATA_OVR with the *same name* will have the same start adress ("overlayed"). Example: ovr1 udata_ovr buf1_hdr res 1 buf1_len res 1 buf1_rest res 3 ovr1 udata_ovr buf1_hdr2 res 2 buf1_len2 res 1 buf1_rest2 res 2 This will create two overlayed definitions of the same physical 5 bytes in memory. Then you can have other overlayed sections with other names. Note, this us MPASM, I do not know if this also works the same in GPASM. Jan-Erik. > John > --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .