On Mon, 19 Aug 2002 13:48:29 -0400 Scott Touchton writes: > 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. $ is the address of the current instruction. So, goto $+1 skips the next instruction (assuming there's one address per instruction, like in the PIC16, but not in the PIC18, which has two addresses (minimum) per instruction). I've sometimes used goto $-1 after a skp instruction so it loops until some condition is true. It's better, though, to just give the skip instruction a label so that later, when you migrate to another processor, it will still work. Harold FCC Rules Online at http://hallikainen.com/FccRules Lighting control for theatre and television at http://www.dovesystems.com Reach broadcasters, engineers, manufacturers, compliance labs, and attorneys. Advertise at http://www.hallikainen.com/FccRules/ . ________________________________________________________________ GET INTERNET ACCESS FROM JUNO! Juno offers FREE or PREMIUM Internet access for less! Join Juno today! For your FREE software, visit: http://dl.www.juno.com/get/web/. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu