Download AVR Assembler 2 User's Guide

Transcript
1 INTRODUCTION.................................................................................................... 4
1.1 Intended Audience............................................................................................................. 4
1.2 Support................................................................................................................................4
2 PACKAGE CONTENTS......................................................................................... 4
3 INSTALLATION...................................................................................................... 4
3.1 Uninstallation..................................................................................................................... 5
4 WHAT'S NEW......................................................................................................... 5
4.1 Changes in Beta 3............................................................................................................... 5
4.2 Changes in Beta 2............................................................................................................... 5
5 KNOWN ISSUES.................................................................................................... 6
5.1 Broken include files and appnotes....................................................................................6
5.2 Comments in macro calls...................................................................................................6
6 INVOCATION SYNTAX.......................................................................................... 6
7 AVR ASSEMBLER 2 SYNTAX............................................................................... 8
7.1 Keywords............................................................................................................................ 8
7.1.1 Instructions.................................................................................................................... 8
7.1.2 Registers........................................................................................................................9
7.1.3 Built-in functions and variables.................................................................................... 9
7.1.4 Assembler directives..................................................................................................... 9
8 PREPROCESSOR.................................................................................................. 9
8.1 Preprocessor directives.................................................................................................... 10
8.2 Preprocessor directive overview..................................................................................... 10
8.2.1 #define.........................................................................................................................10
8.2.2 #undef..........................................................................................................................10
8.2.3 #ifdef........................................................................................................................... 10
8.2.4 #ifndef......................................................................................................................... 10
8.2.5 #if/#elif........................................................................................................................11
8.2.6 #else............................................................................................................................ 11
8.2.7 #endif.......................................................................................................................... 11
8.2.8 #error/#warning/#message.......................................................................................... 11
AVR Assembler 2.0
Page 2 of 16
© 2004 ATMEL Corp.
Revision: BETA 3