The disassembler works fine on the source files I've tried unless the file requires the -Ci (ignore case of labels) flag.
The legacy code I'm working with (some of it decades old) is pretty cavalier about case, so a label like READKEY may be referred to as ReadKey in some places. The code will assemble just fine when the -Ci flag is present, but it does not disassemble.
If you want to see this for yourself, let CW10 create a new project for something like the MC9S08SH16, and select the relocatable assembly option. Build the project (CTRL-B); it works. Look at the automatically generated assembly file (asm_main.asm) in the editor and right click. Select disassemble. It works. Now set the assembler to ignore the case of labels (see below) and add the line
BRA ASM_MAIN
just before the RTS line in the file asm_main.asm. The program will still assemble when you build the project (CTRL-B), but it won't disassemble. In fact, the result is fairly ugly. Scroll to the bottom and you'll see the somewhat bizarre comment that it can't disassemble because it doesn't know what the processor is! This is the issue I'm asking about.
Thanks,
Richly
To set the assembler to ignore case, right-click on any .asm file in the CodeWarrior Projects window and select Properties. Expand the C/C++ Build branch of the tree and select Settings. In the Tool Settings tab of the panel that appears, select the Language option of the HCS08 Assembler node. Check the first option, Case insensitivity on label name (-Ci), and then click OK.