gnupic: More nocturnal programming problems


Previous by date: 18 Mar 2004 22:59:52 +0000 Re: Pista 0.32a released, Gabor Kiss [Bitman]
Next by date: 18 Mar 2004 22:59:52 +0000 gplink module ordering, George M. Gallant
Previous in thread: 18 Mar 2004 22:59:52 +0000 Re: More nocturnal programming problems, David Willmore
Next in thread:

Subject: Re: More nocturnal programming problems
From: David Willmore ####@####.####
Date: 18 Mar 2004 22:59:52 +0000
Message-Id: <200403182259.i2IMxA0t030814@localhost.localdomain>

> > msg_len		EQU	(message_end - message_start)
> 
> Symbols assigned a value using EQU can't be changed.  gpasm checks the
> value on each pass to make sure they match.  On the first pass
> message_end and message_start have a value of 0.  So msg_len has a value
> of 0.  On second pass message_end is 125, so msg_len changes.
> 
> You can change to the SET directive or use a #define.  A few other
> options exist. Pick the one that suits you best.  

VARIABLE	msg_len=(message_end - message_start)

works perfectly.  I tried SET, but it requires the variable to be
defined first, so why not put the value in the VARIABLE statement
in the first place?  I looked at the opcodes produced and they've
got the right value in them (sublw msg_len comes out as 0x3C7D
and the msg_len is 125 or 0x7D).

Thanks, Craig and everyone else.  Does the list take attachements?
If so, I'll post a version of the code for everyones enjoyment. :)

Cheers,
David

Previous by date: 18 Mar 2004 22:59:52 +0000 Re: Pista 0.32a released, Gabor Kiss [Bitman]
Next by date: 18 Mar 2004 22:59:52 +0000 gplink module ordering, George M. Gallant
Previous in thread: 18 Mar 2004 22:59:52 +0000 Re: More nocturnal programming problems, David Willmore
Next in thread:


Powered by ezmlm-browse 0.20.