That's right, but you're using it wrong. The difference between creating= a=20 constant (using EQU) and an address for a variable (using EQU) is *nothin= g*=20 --- at least for the declaration. However, there is a difference based o= n=20 how *you* decide to use it. If you decide that you want to use it as a=20 constant, then just use it as such, eg: "movlw temp". If you know that = it's=20 a variable, then you'll only use in it statements such as "movwf temp". Yeah, it's confusing at first, but if you adopt a system of notation (any= =20 system you choose), then it'll be easier to read. I use all uppercase fo= r=20 constants, and first-letter-upper otherwise. All lowercase is for the=20 reserved words. Stop. Read this paragraph later... Once you get comfortable with this, then add to your confusion by reading= the=20 sections on indirect addressing. Here, you'll declare a variable name, b= ut=20 use it as a constant to move the address of that variable into a register= ,=20 etc, etc. Cheers, -Neil. On Saturday 06 September 2003 19:09, Hopkins scribbled: > I used the command > > temp equ 0x5 > > and in the WATCH window it shows that *temp* has an address of 5 with t= he > value that happens to be at that address. > > I am used to programming were you declare a constant that would make *t= emp* > have a value of 5. > > :-{ > > ----- Original Message ----- > From: "Olin Lathrop" > To: > Sent: Sunday, September 07, 2003 12:13 AM > Subject: Re: [PIC:] MPASM EQU command > > > > I was trying to declare a constant with > > > > > > temp equ 0x5 > > > > That's right. > > > > > but instead of temp =3D 5 it is assigned the address of 5. > > > > No, TEMP =3D 5. Of course you can use TEMP in place of an address > > constant, like: > > > > movf temp, w ;fetch what's in location 5 > > > > > > ***************************************************************** > > Embed Inc, embedded system specialists in Littleton Massachusetts > > (978) 742-9014, http://www.embedinc.com > > > > -- > > http://www.piclist.com hint: The PICList is archived three different > > ways. See http://www.piclist.com/#archives for details. --- [This E-mail scanned for viruses] -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.