Exact match. Not showing close matches.
'[PIC] MPAB v8.76 dsPIC30F2011 asm and ORG directiv'
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,
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.
Electron wrote 2011-10-01 19:44:
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:
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.
Electron wrote 2011-10-02 08:20:
At 15.21 2011.10.02, you wrote:
>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.
> Now I have specifically looked for a CODE directive for the dsPIC as
> you suggested, and it seems it doesn't even exist.
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
- New search...