In AS4 you simply .INCLUDE the relevant xxxDEF.INC header file for your target AVR
You have full control of .NOLIST and .LIST when producing the .LST file for your project.
A typical project might be:
tiny_1634.asm:
.NOLIST .INCLUDE "tn1634def.inc" .LIST #include "generic_project.asm"
tiny_85.asm:
.NOLIST .INCLUDE "tn85def.inc" .LIST #include "generic_project.asm"
The AS4 project has a single "business" source file. You just select the appropriate "entry file" for the target you are building.
.OBJ, .HEX, .MAP, .LST files are generated. The world is a happy place.
With AS7 they had the bright idea of including the part file as default.
In fact this makes the AS7 project easier. You just have a single "generic_project.asm" file and the part is selected in project Properties.
You can edit the Toolchain/AvrAssembler/General pane. e.g. to remove the default include
However if you keep the include there seems no way to stop the include being listed.
Yes, this particular project can be built with GCC. AVRASM2 is nice and simple to use and gives a more intuitive source code and listing.
One further quibble. When I build with AS4, the "tn1634def.inc" file was
;***** THIS IS A MACHINE GENERATED FILE - DO NOT EDIT ******************** ;***** Created: 2011-08-25 21:00 ******* Source: ATtiny1634.xml **********
but with AS7, the "tn1634def.inc" file as
;***** THIS IS A MACHINE GENERATED FILE - DO NOT EDIT ******************** ;***** Created: 2011-05-12 14:38 ******* Source: ATtiny1634.xml ********** ;************************************************************************* ;* A P P L I C A T I O N N O T E F O R T H E A V R F A M I L Y ;* ;* Number : AVR000 ;* File Name : "tn1634def.inc" ;* Title : Register/Bit Definitions for the ATtiny1634 ;* Date : 2011-05-12 ;* Version : 2.35 ;* Support E-mail : avr@atmel.com ;* Target MCU : ATtiny1634
Note that I get the same AS7 part file with C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATtiny_DFP\1.2.118\avrasm\inc\tn1634def.inc
and with Pack 1.0.71, 1.0.79, 1.1.102, 1.2.118
The old AS4 part file has correct entries for SPMCSR register. None of the AS7 part files have the bitfield entries for SPMCSR.
David.