Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Every now and then, this assembler really bugs me..

2006-05-18 by Jim Wagner

Ok, what you want is replacement constants to use in the
expressions you presented for code space. .db actually
assignes it to code or eeprom.

For numeric constants, it is 

.EQU name = value

String type is not given as a valid expression for AVRASM2!

A single character probably works because that converts to
its ascii value.

If you use the method with .db, you could be using twice
the space?

Jim


On Wed, 17 May 2006 18:09:03 -0400
 "David VanHorn" <microbrix@gmail.com> wrote:
> >
> >
> > Of course as you well know the above will put the
> string
> > in either the flash if you are working in a .cseg area
> > or EEPROM if you are working in a .eseg area.
> 
> 
> That's what I wanted.
> 
>
;***************************************************************************
> ;ALWAYS PUT THIS SECTION LAST SO IT SHOWS UP RIGHT BEFORE
> THE COPYRIGHT
> MESSAGE
> ;
> ;Identify code version and primary options in the hex
> file, so as to remove
> any doubt.
> ;
> .db
> "Core=",Version_Major,".",Version_Minor,".",Version_Min
> .db "App ="
> ,AppString,".",App_Major,".",App_Minor,".",App_Min

---------------------------------------------------------------
The Think Different Store
http://www.thinkdifferentstore.com/
For All Your Mac Gear
---------------------------------------------------------------

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.