Solved! Go to Solution.
Hello
I assume you are using a HC08 MCU. AM I right?
1- Inline Assembler does not support "bfset bfObj.bf"
That is right. This notation is not supported by the inline assembler.
You actually have to write it as "bfset #$1,bfObj".
I will submit that as a possible improvement in the compiler.
2- Initializing a structure
The CodeWarrior compiler supports the standard ANSI C notation to initialize a structure. ANSI C standard specifies that a structure must be initialized as follows:
CrasyCat
Hello
I assume you are using a HC08 MCU. AM I right?
1- Inline Assembler does not support "bfset bfObj.bf"
That is right. This notation is not supported by the inline assembler.
You actually have to write it as "bfset #$1,bfObj".
I will submit that as a possible improvement in the compiler.
2- Initializing a structure
The CodeWarrior compiler supports the standard ANSI C notation to initialize a structure. ANSI C standard specifies that a structure must be initialized as follows:
CrasyCat