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 David VanHorn



On 5/17/06, Jim Wagner <jim_d_wagner@applelinks.net > wrote:
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.
God I wish they'd stop trying to HELP me with all this "we know what you meant" junk.
What I've got is an include file that's dropping some application-level code into a system.
I want an equate inside the application code file, so I can version the hex file, with a text string in a nice easy-to-find location.

If you use the method with .db, you could be using twice the space?
It's worse than that, it only LOOKS like it works.
The asm takes it, but the string only exists where it's declared. Where it's used, there's nothing.

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.