Hi all. I'm in the midst of a hobby project, which grew larger than expected (don't they always). 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. Now, if I declare something like this in mod_a.asm: gpr0 udata reg1 res 5 reg2 res 1 and then hdr equ reg1+0 len equ reg1+1 .... 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 It looks as if gplink doesn't correctly patch up the equs. Am I wrong in doing this? John --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .