11.07.2015 Views

Imagecraft c compiler and development environment for the atmel avr

Imagecraft c compiler and development environment for the atmel avr

Imagecraft c compiler and development environment for the atmel avr

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ICCV8 <strong>for</strong> AVR – C Compiler <strong>for</strong> Atmel AVR.define Defines a textual substitution of a register name. Whenever symbol is used inside anexpression when a register name is expected, it is replaced with value. For example:.define quot R15mov quot,R16.elseForms a conditional clause toge<strong>the</strong>r with a preceding .if <strong>and</strong> following .endif. If<strong>the</strong> if clause conditional is true, <strong>the</strong>n all <strong>the</strong> assembly statements from <strong>the</strong> .else to<strong>the</strong> ending .endif (<strong>the</strong> else clause) are ignored. O<strong>the</strong>rwise, if <strong>the</strong> if clauseconditional is false, <strong>the</strong>n <strong>the</strong> if clause is ignored <strong>and</strong> <strong>the</strong> else clause is processedby <strong>the</strong> assembler. See .if..endifEnds a conditional statement. See .if <strong>and</strong> .else..endmacroEnds a macro statement. See .macro..eaddrUse only <strong>for</strong> <strong>the</strong> M256x <strong>and</strong> <strong>the</strong> ‘ (back quote) operator. Generates <strong>the</strong> 3-byte codeaddress of <strong>the</strong> symbol. For example:.eaddr ‘function_name = Defines a numeric constant value <strong>for</strong> a symbol.Example: foo = 5.if If <strong>the</strong> symbol name has a non-zero value, <strong>the</strong>n <strong>the</strong> following code, up to ei<strong>the</strong>r <strong>the</strong>.else statement or <strong>the</strong> .endif statement (whichever occurs first), is assembled.Conditionals can be nested up to 10 levels. For example:.if condlds R10,a185

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!