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 Roy E. Burrage

Doesn't using the .equ directive require a numeric value or expression for the label definition?


REB


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?
  

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.