Is it possible (and if yes how) to include cycle count in assembler listing from Codewarrior?
This is not supported by the assembler, but you can get the decoder to provide you with this information.
- Open your project in CodeWarrior
- Open the target settings dialog
- Switch to "Assembler for HC08" Panel
- Check "Use Decoder to generate Disassembly listing"
- Switch to "Importer for HC08" Panel
- enter command -T in the Command Line Arguments edit box.
- Click OK to close the Target Settings dialog
- Click right on the .asm file name in the .mcp window and select "Disassemble"
A new window will be opened showing the disassembly listing with cycle count in front of each instruction.
Output will look like :
00000040 87  PSHA
where  indicates there a 2 cycles for PSHA.
I hope this helps
Keep in mind this works for HC08, HCS08 and RS08 but not for Coldfire.
CodeWarrior IDE Version 5.9.0 Build 2830
CW Development Studio for Microcontrollers V6.2 ColdFireV1 CN128 Service Pack, build 081107.
CodeWarrior Development Studio for Microcontrollers V6.2 ColdFireV1 JM32 Service Pack, build 080723.CodeWarrior Development Studio for Microcontrollers V6.2 HCS08 FL16 Service Pack, build 081113.CodeWarrior Development Studio for Microcontrollers V6.2 HCS08 SF4 Service Pack, build 081110.CodeWarrior Development Studio for Microcontrollers V6.2 HCS08 SV16 Service Pack, build 081120.CodeWarrior Development Studio for Microcontrollers V6.2 Release, build 8127.CodeWarrior Development Studio for Microcontrollers V6.2.2 Patch, build 9104.
Which supports RS08, S08, HC08 and CF V1....
So for which architecture, for which derivative?
I know that the RS08/S08/HC08's support this as option when using the decoder to disassemble,
check the manual. The compiler may have an option too.
I'm less familar with the CF tools, so I just don't know for those.
MC9S08AC128 and MC9S08SH8
Retrieving data ...