Strictly speaking, each EQU assigns a value to its associated label. For example, TEMPW is not a memory location, but an assembler constant defined as having the value 0x20. It just so happens that it also represents a physcial memory address. To specify a label as being a physcial memory address (instead of simply a constant) use RES. Douglas Wood Software Engineer dbwood@kc.rr.com Home of the EPICIS Development System for the PIC and SX http://epicis.piclist.com > ----- Original Message ----- > From: "michael brown" > To: > Sent: Sunday, April 15, 2001 9:05 PM > Subject: Re: [pic]: beginning assembly question > > > > They are assigning the variables TEMPW and TEMPS to specific RAM addresses > > (that they apparently know or assume are available for their specific > > usage). The variables REGA and REGB are being assigned to addresses > relative > > to the first two variables. There are other (more elegant) ways to > assign > > variables to memory locations, that are probably more convenient in terms > of > > porting the code to another processor or performing code maintenance (look > > into the CBLOCK pseudo-op). My terminology on these items may not be the > > most appropriate as I am also new to the PIC thing. I hope I have helped > > you in some way. Have fun. > > > > Michael Brown > > Instant Net Solutions > > www.KillerPCs.net > > > > ----- Original Message ----- > > From: "rad0" > > To: > > Sent: Sunday, April 15, 2001 8:12 PM > > Subject: [pic]: beginning assembly question > > > > > > > what are these equate statements doing? > > > > > > Is this assigning the var labels to positions in memory or > > > setting aside memory space, or what? > > > > > > thanks in advance > > > > > > > > > ; VARIABLE DECLARATION > > > > > > TEMPW EQU 0x20 > > > > > > TEMPS EQU 0x21 > > > > > > REGA EQU TEMPS + 1 > > > > > > REGB EQU REGA + 1 > > > > > > -- > > > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > > > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > > > > > > > > > > -- > > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > > > > > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body