Got it. It directs the assembler what address to place the lines of code in. Interesting. So, if I wanted to I could have a block of code that is typed at the top of my ASM file, but using the ORG command, its the thing in the memory map of the PIC. Thanks for the insight. Shawn -----Original Message----- From: Tony Nixon [mailto:Tony.Nixon@ENG.MONASH.EDU.AU] Sent: Thursday, August 31, 2000 5:39 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [Pic]:Org Shawn Yates wrote: > > Hello. > > I have been using the PICs for about two years now and every now and > then I see the macro ORG. What is that for? I have never had a need to use > it, but if its usefull maybee I have been missing out on something. > > Thanks > > Shawn > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics Hi Shawn, It sets the assemblers program address. Eg org 0000h ; start compiling code from address 0h org 0010h ; start compiling code from address 10h Try it out and look at the *.lst file to see the effect. -- Best regards Tony ICmicro's http://www.picnpoke.com mailto:sales@picnpoke.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics