On Wed, 17 Jun 1998, wrote: > Hello > > It has been suggested I write some macros to simplify my code. I haven't used > them before. The MPASM assemblers guide is limited. I have a couple of > questions. Please note I am a beginner > > In my code I am struggling to keep table and references to the PCL within the > first 255 addresses. The guide states macros must be defined prior to their > use. If I define them at the beginning of my code will they occupy those > addresses? Nope. Macro definitions don't occupy code space. > > Is it appropriate to define macros using an include file and simply make > reference to them at the beginning of the program? Yeah. You can even set up your macro library. > > Is there a straight forward tutorial that could help me understand how to > implement macros? I have all the most popular PIC books but they don't go into > macros. There is the text 'usrguide.txt' for MPASM, maybe packaged with obsolete version. > > Is the Parrallax assembler a compilation of macros? > > Nope. However, you can see it so, but there are ladder macros. The Parallax assembler - I like it! - is not capable to cope with macros. Regards Imre