Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] AVR Studio 4 include statement

2005-03-28 by Geert De Pecker

Dave,

Thanks for the confirmation.

Geert


Dave VanHorn wrote:
> 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
> ;
> ;************************************************************************************************************* 
> 
> 
> 
> 
> *Yahoo! Groups Sponsor*
> ADVERTISEMENT
> click here 
> <http://us.ard.yahoo.com/SIG=129nhpiba/M=298184.6191685.7192823.3001176/D=groups/S=1706554205:HM/EXP=1112053902/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075>
> 
> 
> ------------------------------------------------------------------------
> *Yahoo! Groups Links*
> 
>     * To visit your group on the web, go to:
>       http://groups.yahoo.com/group/AVR-Chat/
>        
>     * To unsubscribe from this group, send an email to:
>       AVR-Chat-unsubscribe@yahoogroups.com
>       <mailto:AVR-Chat-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>        
>     * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>. 
> 
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.