At 15.21 2011.10.02, you wrote: >Hi. > >I didn't say you can *not* specify absolute addresses, >but you do it using the CODE directive instead of ORG. > > > I'll take a look at the CODE directive, thank you! > >It would have been nice if you had done that before repying. You are mean. I didn't know that this directive existed, and if you had read my message you'd know that I asked for which document to find this info on, as the Programmer's Reference Manual for the dsPIC didn't contain it, and my Googling was unsuccessful. Now I have specifically looked for a CODE directive for the dsPIC as you suggested, and it seems it doesn't even exist. Doh! > >Jan-Erik. > > >Electron wrote 2011-10-02 08:20: >> >> The reason why I wanted to use it is because for some reason it=20 >started assembling >> at 0x7E instead of 0x100.. i.e. it assembled in the vector table!!! >> >> However, linking apart, being able to specify absolute addresses is=20 >not as antiquated >> as You depicted it.. and has its reasons. >> >> I'll take a look at the CODE directive, thank you! >> >> >> At 23.46 2011.10.01, you wrote: >>> The ORG directive belongs to absolute mode programming, the >>> way one used to write code "yesterday". I think the >>> 16-bitters are codeable in relocatable mode only. >>> Read up on the CODE directive. >>> >>> Jan-Erik. >>> >>> >>> Electron wrote 2011-10-01 19:44: >>>> >>>> Hello, >>>> MPAB v8.76 dsPIC30F2011 programmed in asm, I wanted to specify an=20 >ORG address >>>> but it tells me invalid mnemonic. >>>> >>>> I seem to recall ORG worked with PIC18F.. is there a doc by Microchip = which >>>> addresses the MPAB asm directives? Sorry if the question seems=20 >stupid, I took >>>> a look at the Programmer's Reference Manual for the dsPIC but I=20 >didn't manage >>>> to find it. >>>> >>>> With kind regards, >>>> Mario >>>> >>> -- >>> http://www.piclist.com PIC/SX FAQ& list archive >>> View/change your membership options at >>> http://mailman.mit.edu/mailman/listinfo/piclist >> >--=20 >http://www.piclist.com PIC/SX FAQ & list archive >View/change your membership options at >http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .