MPASM 03.20.02 Released      EXPNDMAC.ASM   11-21-2002  20:20:17         PAGE  1


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

                      00001 ; EXPNDMAC.ASM
                      00002 
                      00003 ; This file is for testing macro expansion.
                      00004 
                      00005         LIST    P=16C71
                      00006 
                      00007 MAC1    MACRO   
                      00008         NOP
                      00009         ENDM
                      00010 
                      00011 
                      00012         MAC1
0000   0000               M         NOP
                      00013 
                      00014         EXPAND                          
                      00015 
                      00016         MAC1
0001   0000               M         NOP
                      00017 
                      00018         NOEXPAND
                      00019 
                      00020         MAC1
                      00021 
                      00022         EXPAND                          
                      00023 
                      00024         MAC1
0003   0000               M         NOP
                      00025 
                      00026         NOEXPAND
                      00027 
                      00028         MAC1
                      00029 
                      00030 ;***** Test for SSR 1928
                      00031 
                      00032 Mac1    macro
                      00033         nop
                      00034         Mac2
                      00035         nop
                      00036         endm
                      00037 
                      00038 Mac2    macro
                      00039         addlw   1
                      00040         endm
                      00041 
                      00042 Mac3    macro
                      00043         nop
                      00044         noexpand
                      00045         Mac4
                      00046         expand
                      00047         nop
                      00048         endm
                      00049 
                      00050 Mac4    macro
MPASM 03.20.02 Released      EXPNDMAC.ASM   11-21-2002  20:20:17         PAGE  2


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

                      00051         addlw   1
                      00052         endm
                      00053 
                      00054 Mac5    macro
                      00055         nop
                      00056         Mac6
                      00057         nop
                      00058         endm
                      00059 
                      00060 Mac6    macro
                      00061         noexpand
                      00062         addlw   1
                      00063         expand
                      00064         endm
                      00065 
                      00066         expand
                      00067         Mac1
0005   0000               M         nop
                          M         Mac2
0006   3E01               M         addlw   1
0007   0000               M         nop
                      00068         noexpand
                      00069         Mac1
                      00070         expand
                      00071 
                      00072         Mac3
000B   0000               M         nop
                          M         expand
000D   0000               M         nop
                      00073 
                      00074         Mac5
000E   0000               M         nop
                          M         Mac6
                          M         expand
0010   0000               M         nop
                      00075 
                      00076 ;***** End Test
                      00077 
                      00078         END     
MPASM 03.20.02 Released      EXPNDMAC.ASM   11-21-2002  20:20:17         PAGE  3


SYMBOL TABLE
  LABEL                             VALUE 

MAC1                              
Mac1                              
Mac2                              
Mac3                              
Mac4                              
Mac5                              
Mac6                              
__16C71                           00000001


MEMORY USAGE MAP ('X' = Used,  '-' = Unused)

0000 : XXXXXXXXXXXXXXXX X--------------- ---------------- ----------------

All other memory blocks unused.

Program Memory Words Used:    17
Program Memory Words Free:  1007


Errors   :     0
Warnings :     0 reported,     0 suppressed
Messages :     0 reported,     0 suppressed

