MPASM 03.20.02 Released      CONSTNT1.ASM   11-21-2002  20:20:15         PAGE  1


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

                      00001 ; CONSTNT1.ASM
                      00002 
                      00003 ; This file tests legal usage of the CONSTANT directive.
                      00004 
                      00005         LIST    P=16C54, R=HEX
                      00006 
                      00007 #define Value1  10
  00000020            00008 Value2  =       20
                      00009 
  0001                00010         CONSTANT        Const01=1               ; One with hardcoded value
  0010                00011         CONSTANT        Const02 = Value1        ; One with string substitution
  0020                00012         CONSTANT        Const03 = Value2        ; One with variable equate
                      00013 
  0031                00014         CONSTANT        Const04 = Const01 + Const02 + Const03
                      00015                                                 ; One with expression
                      00016 
  0005                00017         CONSTANT        Const05=5,Const06=6,Const07=7
                      00018                                                 ; Multiple squished, hardcoded
                      00019 
  0008                00020         CONSTANT        Const08 = 8 , Const09 = Value1 , Const10 = Value2 , Const11 = 1 + 2
                      00021                                                 ; Multiple mishmash
                      00022 
0000   0001 0010 0020 00023         DATA    Const01, Const02, Const03, Const04
       0031 
0004   0005 0006 0007 00024         DATA    Const05, Const06, Const07, Const08
       0008 
0008   0010 0020 0003 00025         DATA    Const09, Const10, Const11
                      00026 
                      00027         END
MPASM 03.20.02 Released      CONSTNT1.ASM   11-21-2002  20:20:15         PAGE  2


SYMBOL TABLE
  LABEL                             VALUE 

Const01                           00000001
Const02                           00000010
Const03                           00000020
Const04                           00000031
Const05                           00000005
Const06                           00000006
Const07                           00000007
Const08                           00000008
Const09                           00000010
Const10                           00000020
Const11                           00000003
Value1                            10
Value2                            00000020
__16C54                           00000001


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

0000 : XXXXXXXXXXX----- ---------------- ---------------- ----------------

All other memory blocks unused.

Program Memory Words Used:    11
Program Memory Words Free:   501


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

