stevech wrote:Not sure why these get a compiler error
The problem is that DDR is not a known identifier. The special construction Register.DDR evaluates to the address of the DDR register on the particular device and can thus be used as the source or destination for a value.
The #define construction in ZBasic does not have the full text substitution capability of the C preprocessor.