>- Maths operators and quotes on a comment line (ie after a

cause errors.
>I would have thought the line was ignored! (putting ; // solves the problem !)
There are two forms for HLI, in the __asm nop; the semicolon is just the usual C statement terminator.
Therefore everything following it has to be legal C too.
The other form is
__asm {
nop; comment
}
Here the assembly line is line terminated. However it is not possible to use this form in macros expand
to a single line only. Anyway, I would suggest to stick with the ";// comments". It also helps the syntax coloring.
> How do I express a binary format number? LDA #%01101101 causes an 'octal number' error.
There is no support for binary numbers in C. However the Metrowerks compiler supports binary numbers with a
0b0101010 syntax. In HLI code, I feel free to use that, as HLI is compiler specific anyway.
In plain C code I usually use decimal/hex only in order to just use ANSI C.
> - How do I express a decimal number such as LDA #01 (again an octal error if there is a leading zero.
> I would like to show a leading zero somehow)
Sorry, in ANSI C if it starts with a zero, it is octal. So you have to drop the 0 there. I think the compiler warns about octal numbers so at least you should not miss those.
Daiel