Searching \ for '[PIC] MPAB v8.76 dsPIC30F2011 asm and ORG directiv' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/ios.htm?key=spi
Search entire site for: 'MPAB v8.76 dsPIC30F2011 asm and ORG directiv'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] MPAB v8.76 dsPIC30F2011 asm and ORG directiv'
2011\10\01@134525 by Electron

flavicon
face

Hello,
MPAB v8.76 dsPIC30F2011 programmed in asm, I wanted to specify an 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 stupid, I took
a look at the Programmer's Reference Manual for the dsPIC but I didn't manage
to find it.

With kind regards,
Mario

2011\10\01@174559 by Jan-Erik Soderholm

face picon face
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:
{Quote hidden}

2011\10\02@022109 by Electron

flavicon
face

The reason why I wanted to use it is because for some reason it 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 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:
{Quote hidden}

>

2011\10\02@092154 by Jan-Erik Soderholm

face picon face
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.

Jan-Erik.


Electron wrote 2011-10-02 08:20:
{Quote hidden}

>> -

2011\10\03@153044 by Electron

flavicon
face
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!


{Quote hidden}

>>> --

2011\10\04@043122 by alan.b.pearce

face picon face
> Now I have specifically looked for a CODE directive for the dsPIC as
> you suggested, and it seems it doesn't even exist.
>
> Doh!

It may be that you are looking in the wrong manual, I haven't chased the reference, but you may need the Linker manual, rather than the Assembler manual.

You should also be able to find 'code' using the MPLAB help system. That does seem to be reasonably well done.
-- Scanned by iCritical.

More... (looser matching)
- Last day of these posts
- In 2011 , 2012 only
- Today
- New search...