Topic tag police On Tue, Aug 7, 2012, at 01:07 PM, John Coppens wrote: > Hi all. >=20 > I'm in the midst of a hobby project, which grew larger than expected > (don't they always). >=20 > My project has several relocatable modules, and I noticed some strange > things. Say main.asm and moda.asm both have a section 'udata' and both > define several registers. >=20 > Now, if I declare something like this in mod_a.asm: >=20 > gpr0 udata > reg1 res 5 > reg2 res 1 >=20 > and then >=20 > hdr equ reg1+0 > len equ reg1+1 > ... >=20 > then, hdr and len are always 0 based (not the address of reg1 + N). > The value of reg1 is correct - correctly appended to the gpr0 section > in main.=20 >=20 > It looks as if gplink doesn't correctly patch up the equs. >=20 > Am I wrong in doing this? >=20 > John --=20 http://www.fastmail.fm - Faster than the air-speed velocity of an unladen european swallow --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .