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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ICCV8 <strong>for</strong> AVR – C Compiler <strong>for</strong> Atmel AVR.ascii “strings”.asciz “strings”These directives are used to define strings, which must be enclosed in a delimiter pair.The delimiter can be any character as long as <strong>the</strong> beginning delimiter matches <strong>the</strong>closing delimiter. Within <strong>the</strong> delimiters, any printable ASCII characters are valid, plus<strong>the</strong> following C-style escape characters, all of which start with a backslash (\):\e escape\b backspace\f <strong>for</strong>m feed\n line feed\r carriage return\t tab\ character with value equal to <strong>the</strong>octal digits.asciz adds a NUL character (\0) at <strong>the</strong> end. It is acceptable to embed \0 within <strong>the</strong>string.Examples: .asciz “Hello World\n”.asciz “123\0456”.byte [,]*.word [,]*.long [,]*These directives define constants. The three directives denote byte constant, wordconstant (2 bytes), <strong>and</strong> long word constant (4 bytes), respectively. Word <strong>and</strong> longword constants are output in little endian <strong>for</strong>mat, <strong>the</strong> <strong>for</strong>mat used by <strong>the</strong> AVRmicrocontrollers. Note that .long can only have constant values as oper<strong>and</strong>s. Theo<strong>the</strong>r two may contain relocatable expressions.Example: .byte 1, 2, 3.word label,foo.blkb .blkw .blkl These directives reserve space without giving <strong>the</strong>m values. The number of itemsreserved is given by <strong>the</strong> oper<strong>and</strong>.184

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

Saved successfully!

Ooh no, something went wrong!