
Table of Contents
Preface............................................................................................................................ 1
1. AVR Assembler Known Issues.................................................................................. 4
2. AVR Assembler Command Line Options...................................................................7
3. Assembler Source....................................................................................................11
4. AVR Assembler Syntax............................................................................................12
4.1. Keywords....................................................................................................................................12
4.2. Preprocessor Directives............................................................................................................. 12
4.3. Comments..................................................................................................................................12
4.4. Line Continuation....................................................................................................................... 12
4.5. Integer Constants.......................................................................................................................12
4.6. Strings and Character Constants............................................................................................... 12
4.7. Multiple Instructions per Line......................................................................................................13
4.8. Operands....................................................................................................................................13
5. Assembler Directives...............................................................................................14
5.1. BYTE..........................................................................................................................................14
5.2. CSEG......................................................................................................................................... 14
5.3. CSEGSIZE................................................................................................................................. 14
5.4. DB.............................................................................................................................................. 15
5.5. DD.............................................................................................................................................. 15
5.6. DEF............................................................................................................................................ 16
5.7. DQ..............................................................................................................................................16
5.8. DSEG......................................................................................................................................... 16
5.9. DW............................................................................................................................................. 17
5.10. ELIF and ELSE...........................................................................................................................17
5.11. ENDIF.........................................................................................................................................17
5.12. ENDM and ENDMACRO............................................................................................................18
5.13. EQU............................................................................................................................................18
5.14. ERROR...................................................................................................................................... 18
5.15. ESEG......................................................................................................................................... 19
5.16. EXIT........................................................................................................................................... 19
5.17. IF, IFDEF, and IFNDEF...............................................................................................................19
5.18. INCLUDE....................................................................................................................................20
5.19. LIST............................................................................................................................................20
5.20. LISTMAC....................................................................................................................................21
5.21. MACRO......................................................................................................................................21
5.22. MESSAGE..................................................................................................................................21
5.23. NOLIST...................................................................................................................................... 22
5.24. ORG........................................................................................................................................... 22
5.25. OVERLAP and NOOVERLAP....................................................................................................23
5.26. SET............................................................................................................................................ 23
5.27. UNDEF.......................................................................................................................................23
AVR Assembler
© 2017 Microchip Technology Inc.
User Guide
DS40001917A-page 2