hi,
1. we can't set a breakpoint as specific code such as case 0:.
here is a piece of disassemble code i extracted for switch...case

we can see there is no "real" disassembly code allocated in memory for "case 0". so it's not possiable to set a breakpoint at this line.
2. CW for HCS08 doesn't define a optimization level. but we can disable optimization in compiler option settings

can this help you?
Have a great day,
Zhang Jun
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------