Hello
If you are using the IDE to build the application:
- Open the project
- Open the target setting dialog (Press ALT+F7)
- switch to the "Compiler for HC08" Panel
- Click on the "Type Sizes" button.
- In the "Standard Types Setting" dialog set enum to 8-bit using the radio button
- Close the dialog with OK
- Close target setting dialog with OK.
If you are building from batch (or from am make file) add option -TE1 to your command line.
Note that you can also set enum type to be unsigned per default. The option for 8-bit unsigned enums is
-TE1uE
CrasyCat