Brendan Gillatt wrote: > Say I have two modules, each requiring the use of a constant, 0xAA in > this case. I could put > >> >> constant testconst = 0xAA >> > > or > >> >> testconst equ 0xAA >> > > in both files but this is obviously not very elegant or easy to > maintain. Use a include file. > I have tried to define the constant--using both methods above--and > using GLOBAL and EXTERN statements to "share" the constant between > modules as I would with variable and code labels. This causes MPASM > to throw: Of course. I could go into more detail, but not under the present circumstances. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist