Steven, cool.

I applied this (minding the fact, that msp430-dis.c has been changed recently).

Only one question:
How does IAR describe interrupt vector table?
The output with IAR option looks like:

;Disassembly of section .vectors:

                        ORG     0x0000ffe0
InterruptVectors:
                        ;interrupt service routine at 0xfc3a
                        ;interrupt service routine at 0xfc3a
                        ;interrupt service routine at 0xfc3a
                        ;interrupt service routine at 0xfc3a
                        ;interrupt service routine at 0xfc3a
                        ;interrupt service routine at 0xfc5c
                        ;interrupt service routine at 0xfc3a
                        ;interrupt service routine at 0xfc3a
                        ;interrupt service routine at 0xfc3a
                        ;interrupt service routine at 0xfc3a
                        ;interrupt service routine at 0xfc3a
                        ;interrupt service routine at 0xfc3a
                        ;interrupt service routine at 0xfc3a
                        ;interrupt service routine at 0xfc3a
                        ;interrupt service routine at 0xfc3a
                        ;interrupt service routine at 0xfc00
                        END

So, how to tell that there is an ISR at 0xfc00 and at 0xfc5c?

I'll post patches when done.

~d


On Thu, 04 Jul 2002 08:34:49 +1000
Steven Johnson <[email protected]> wrote:

> Hi all,
> 
> Attached is a patch to the MSP430 Binutils, that adds a disassembler
> option "IAR".  This allows the output of objdump to be assembled in the
> IAR environment and debugged with the FET Tool. (You can mix assembly
> and C code output with the disassembler).  It basically reformats the
> disassembly so that the IAR assembler can cope with it, adds labels and
> org statements, and comments out anything that is not for the
> assembler.  
> 
> I Suggest building the tools and installing them.  Then applying this
> patch to binutils.  Then rebuilding binutils and manually copying
> objdump over the original objdump.  Im not sure if this patch interferes
> with anything else in binutils, I think it doesn't, but I haven't tested
> it.  I dont know if the patch works under windows, I have only tested it
> under Linux.
> 
> Use it thus:
> 
> msp430-objdump -DSt --disassembler-options=IAR [objfile]
> 
> to get the disassembly, with source code interleaved.
> 
> Regards,
> Steven Johnson


/********************************************************************
     ("`-''-/").___..--''"`-._     (\   Dimmy the Wild      UA1ACZ
      `6_ 6  )   `-.  (     ).`-.__.`)  Enterprise Information Sys 
      (_Y_.)'  ._   )  `._ `. ``-..-'   Nevsky prospekt,   20 / 44
    _..`--'_..-_/  /--'_.' ,'           Saint Petersburg,   Russia
   (il),-''  (li),'  ((!.-'             +7 (812)  3468202, 5585314
 ********************************************************************/

Reply via email to