At 01:48 PM 8/19/02 -0400, you wrote: >Hi folks, > >Been seeing this notation in various bits of code, and can't quite ascertain what it really means. Assumed it was related to pushing the program counter, or making jumps in code: > >goto $ + 1 > >Basically, I am confused as to what the $ represents. What a ripoff! You can goto Digikey and get them for $ - 1 Oh, wait, er, wrong topic. The dollar sign - $ - means 'here'. So goto $ + 1 means to increment the pc by one. This is used in two ways, (at least). The usual idea is that when writing your program, you don't know where the assembler will stick your code. If you need to reference a nearby location, you say $ which means where the current pc is. $ + 1 means to go to the next location. Why would you say goto $ + 1 ? This burns two instruction cycles and can be used to make short delays with only one program memory space used. Other brighter folks can (and will no doubt) elaborate on this. Tom M. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu