At 05:30 PM 3/27/2005, Geert De Pecker wrote:
>Hi all,
>
>I have a question concerning the .include statement in the AVR studio.
>It would seem the includes are not processed before the assembler
>statements itself are processed:
Here's the basic structure, from a tiny-11 app
;
;***********************************************************************
;
.DEVICE AT90S2343
;
;DO NOT CHANGE THE ORDER OF THESE INCLUDES
;
.include "TN11def.inc" ;Register definitions
.include "EQUTN11.ASM" ;Ends with .cseg directive!
.include "ISRTN11.ASM" ;Reset vector and ISRs
.include "INITTN11.ASM" ;Init code, falls through to IDLE below
;
;***********************************************************************
;From reset, we execute the code in INITTN11.asm, then fall through to here.
;
;Pretty much everything happens in the T0 ISR.
;Here, we just handle the morse output (up to the beeping part) and
;the keying function.
;
;The order of operations is important. Don't change the order unless you have
;a very good reason.
;
Idle: ;dont enable interrupts until we have one complete pass.
rcall COR_Debounce ;Take /CORD low immediate,
high after debounce.
rcall Check_TXT ;Have we timed out?
rcall Check_CT ;Do we need a courtesy tone?
rcall Check_cwid ;Do we need to ID?
rcall CW_Spew ;If we have a CWID in progress,
then keep sending.
rcall Check_Key ;Do we need to change the
key state?
sei ;Enable ints
rjmp Idle ;That's all we do.
;
;********************************************************************************
;Pull in the other external files
;Order of these files is not important.
;
.include "morse.asm" ;Text to morse conversion
.include "Settings.inc" ;User alterable settings
;
;*************************************************************************************************************Message
Re: [AVR-Chat] AVR Studio 4 include statement
2005-03-27 by Dave VanHorn
Attachments
- No local attachments were found for this message.