Instructions

212Compiler
© 2013 Conrad Electronic
Xor
exclusive Or
Not
Bit inversion
4.3.8.3 Reserved Words
The following words are reserved and cannot be used as identifiers:
And
As
ByRef
Byte
Case
Char
Dim
Do
Else
ElseIf
End
Exit
False
For
Goto
If
Integer
Lab
Loop
Mod
Next
Not
Opc
Or
Return
Select
Single
SizeOf
Static
Step
Sub
Then
To
True
While
Word
Xor
ULong
Long
UInteger
4.4 Assembler
With IDE Version 2.0 it is possible to integrate Assembler routines into a project. The used Assem-
bler is the GNU Open Source Assembler AVRA. The sources of the AVRA Assembler can be found
in the installation directory "GNU". Assembler routines that are called from CompactC and Basic run
in full CPU speed, in contrary to the Bytecode Interpreter. It is possible to pass parameters to
Assembler procedures and get their return values. Also global CompactC and Basic variables can be
accessed. The compiler recognizes assembler files with their ".asm" ending. Assembler sources are
added to a project like CompactC or Basic files.
The programming in assembly language is only recommended for the advanced user of the sys-
tem. The programming is very complex and error prone, and should only be used by these people
that have a very good knowledge of the system.
There is no free assembler available for AVR32 Unit. Since the C-Control Pro AVR32Bit is also
much faster than the C-Control Pro Mega series, no assembly support is planned for the AVR32.
Literature
You can find manifold literature about assembly language programming on the internet and in the
book trade. Important are the "AVR Instruction Reference Manual" that can be found on the Atmel
website and in the "Manual" directory of the C-Control Pro installation, and the "AVR Assembler
User Guide" from the Atmel website.
4.4.1 An Example
The structure of assembly routines is explained in the following example (also included in the demo
programs). In the project the CompactC source code file must have the ending ".cc", the assembler
source files have to end with ".asm".