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-17 by Ned Konz

Dave VanHorn wrote:
> .cseg
> .equ	App_Major	= '1'	; Set this with every released build!
> .equ	App_Minor	= '0'	;
> .equ	App_Min		= '0'	;
> .equ	AppString	= 'Par_TX' ;Always 6 char
> 
> I'm getting an error on the last string define.
> The fun thing is, I've reordered the strings, and tried a number of 
> things, and it keeps erroring with "Undefined Symbol" on this line, 
> no matter what I put in the string, length, you name it.
> 
> 
> .cseg
> .equ	AppString	= 'Par_TX' ;Always 6 char
> .equ	App_Major	= '1'	; Set this with every released build!
> .equ	App_Minor	= '0'	;
> .equ	App_Min		= '0'	;
> 
> Still errors on the line with AppString
> 
> 
> Am I missing something?

The correct syntax...


Either

.equ AppString, 'Par_TX'

or

AppString = 'Par_TX'


is probably what you want.


Though if you want a string to use with the .ascii directive, you'll 
want double quotes.


Thanks,
-- 
Ned Konz
ned@bike-nomad.com
http://bike-nomad.com

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.