Yes, it is true in relocable code, but in absolute code, you can "watch" it. Francisco "Quitt, Walter" wrote: > > If you use an EQU to assign a memory location for a variable, > you will NOT be able to "watch" it. That means it will NOT > show up in the "variable" list in the Show Symbols List option > of the Window menu of MPLAB. > > -----Original Message----- > From: Francisco Armenta [mailto:briones@DATASYS.COM.MX] > Sent: Tuesday, May 09, 2000 11:16 AM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: CONSTANT or EQU > > Martin. > > I use the EQU for assigned a memory location for a variable. and > CONSTANT for use a label otherwaise a number. > > Francisco > > Martin SchŠfer wrote: > > > > Somebody out there who can explain me the difference between CONSTANT and > > EQU? After assembling, the two both become constants in the Cross > reference > > file. The same question could be asked about the difference between > VARIABLE > > and SET. The Users guide says only: > > > > EQU - an Assembler Constant > > > > CONSTANT - Symbol Constant > > > > What I want to do is to define a constant for a reload value of timer 1, > > dependent on the frequency and perhaps some other parameters. > > > > constant TMR1H_SUB = D'1000' * Frequency / D'4000000' / 256 > > > > TMR1H_SUB equ D'1000' * Frequency / D'4000000' / 256 > > > > or something like this. This constant will then be used like > > > > movlw TMR1H_SUB > > subwf TMR1H,F > > > > Thanks for helping > > > > martin > > > > ;********************************************** > > ;** name: Martin Schaefer ** > > ;** company: elektronik 21 GmbH, Germany ** > > ;** e-mail: schaefer@elektronik21.de ** > > ;**********************************************