John Wrote... > Dear PICsters, > I have a question for someone who can tell me about macros. How many times > can a macro be called. Can a macro be called from inside another macro? What > is the difference between a macro and a subroutine? If I happen to call a > macro from outside the page limits, what will happen? > > > Please advise > > Regards John A Macro is not a PIC command. Its a label for people writing code. In the assembler the Macro is some lines of PIC commands that are given a single name to REPRESENT those lines. When the .asm file is assembled those Macro words are substituted for the lines you originally wrote. The advantage of this is that you dont have to keep writing the same few lines over and over again and it can make more sense to have a descriptive name like GET_A2D. A subroutine is different in that the name(label) of the subroutine is a pointer to the address of where the first byte of the subroutine is stored in the program memory. _____________________________ Lance Allen Technical Officer Uni of Auckland Psych Dept New Zealand www.psych.auckland.ac.nz _____________________________