Disassembling Softec examples

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Disassembling Softec examples

2,851 Views
JohnnyP
Contributor III
I have the HCS12 starter kit, and want to see the assembly listing of the examples, which are programmed in C.

DataBlaze can display the memory contents. CW can disassemble files.

How can I get the contents into a file that CW can read?

From the example called ADC.mcp:

FFFE FFFF reset vector is $4029.

4029 1E 40 39 02 03 FF 40 then strange characters
4030 etc
Labels (1)
0 Kudos
4 Replies

507 Views
CrasyCat
Specialist III
Hello
 
You can see a disassembly listing from the whole application in the following way:
  - Add the .abs file to the .mcp window
  - Click with the right mouse button on the .abs file name and select disassemble.
    A new window is opened showing the disassembly listing from the whole application.
 
Make sure to remove the .abs from the project before you do a new build, otherwise you get strange messages.
 
CrasyCat
0 Kudos

507 Views
JohnnyP
Contributor III
Thank you so much.

Except for the port configs and load/stores, disassembled C code looks weird.
0 Kudos

507 Views
CrasyCat
Specialist III
What do you mean?
Compiler generating too much code? Or difficult to understand?
 
CrasyCat
0 Kudos

507 Views
JohnnyP
Contributor III
Difficult to understand. I put it away for now.
0 Kudos