Look in the processor's data sheet. (Yes, they're all one byte wide.) 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: "rad0" To: Sent: Sunday, April 15, 2001 9:17 PM Subject: Re: [pic]: beginning assembly question > wait a minute, > > all registers are 1 byte wide for all pics, true? > > > > ----- Original Message ----- > From: "rad0" > To: > Sent: 15 April, 2001 21:03 > Subject: Re: [pic]: beginning assembly question > > > > Thanks very much, > > > > I forgot to ask, is it assumed to 1 byte in memory, or is this > > something for each processor? > > > > > > for > > 0x20 > > and > > 0x21 > > > > is 0x21 1 byyte away from 0x20 ? > > > > > > ----- Original Message ----- > > From: "Jeff Johnson" > > To: > > Sent: 15 April, 2001 20:40 > > Subject: Re: [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? > > > > > > > > ; VARIABLE DECLARATION > > > > > > > > TEMPW EQU 0x20 > > > > > > Yes. This is assigning a label to an address in > > > memory. This allows you to write your code as > > > > > > movf TEMPW,W ;load W with contents of > > > address 20 > > > > > > instead of the more cumbersome > > > > > > movf 0x20,W > > > > > > or assigning a value to a label > > > > > > movlw TEMPW ;load W register with value > > > assigned to TEMPW > > > > > > such that whenever the assembler sees the label, it > > > substitutes the equated value at build time. > > > > > > Jeff Johnson > > > http://home.dialix.com/~u2263/index.htm > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Get email at your own domain with Yahoo! Mail. > > > http://personal.mail.yahoo.com/ > > > > > > -- > > > 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 > > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body