Forums

metrowerks and .asm files

Started by Thomas May 19, 2005
anyone know how to get metrowerks to print out C and asm as well as
asm line numbers? I'm trying to go from P:12DC A001 BCC 0x12DE to the
equivelant in my C code. I remember doing it with my 68000 so I'm
hopping I can do it here.

thanks,
tom


Simply right mouse click a filename in the CW project, and select
Disassemble command. CodeWarrior will produce output with mixed C
and ASM, as well as line number count. It will look something like
this:

;
; 32:
; 33: void main(void)
; 34: {
; 35: /*** Processor Expert internal initialization. DON'T
; 36: PE_low_level_init();
; 37: /*** End of Processor Expert internal
; 38:
; 39: /* Write your code here */
; 40:
;
0x00000000 Fmain:
0x00000000 0xE2540000 jsr
0x000000 ; FPE_low_level_init
0x00000002 0xA97F bra *+0

--- In motoroladsp@moto..., "Thomas" <tommyjt24@y...> wrote:
> anyone know how to get metrowerks to print out C and asm as well
as
> asm line numbers? I'm trying to go from P:12DC A001 BCC 0x12DE to
the
> equivelant in my C code. I remember doing it with my 68000 so I'm
> hopping I can do it here.
>
> thanks,
> tom