gnupic@linuxhacker.org

gnupic@linuxhacker.org


Subject: Re: [PIC]: Bug in gpasm's expression evaluator?
From: Craig Franklin
Date: 21 Oct 2003 20:38:36 -0500

On Tue, 2003-10-21 at 01:38, Philip Pemberton wrote:
> In message <1066696096.1419.9.camel@R2D2>
>           Craig Franklin <craigfranklin@comcast.net> wrote:
> 
> > I believe this bug is covered by:
> >
> > https://sourceforge.net/tracker/index.php?func=detail&aid=716633&group_id=41924&atid=431665
> >
> > I will take care of if.  Give me a little time.
> It looks like the glitch can be fixed by replacing the strtol in
> "gpasm/util.c" with a strtoul. At least, that's what killed the bug in my
> copy of GPASM. Thank Sergio Masci, not me :)
> Anyway, thanks to Scott Dattalo and Craig Franklin (and anyone else who
> contributed code to GPUtils) - GPUtils is great! :)
> 

A patch has been committed to CVS.  It will be in the next gputils
release.  That release is a couple weeks away.  If you can't wait, the
change will be part of the CVS snapshot tomorrow.  A link to the
snapshot is located at http://gputils.sourceforge.net.

You also had a problem with ">> 24".  I think it is caused by using a
default radix of hex.  gpasm is reading this as ">> 0x24" or ">> 36". 
Change your radix to dec or use d'24'.

> Later.
> --
> Phil.                              | Acorn Risc PC600 Mk3, SA202, 64MB, 6GB,
> philpem@dsl.pipex.com              | ViewFinder, Ethernet (Acorn AEH62),
> http://www.philpem.dsl.pipex.com/  | 8xCD, framegrabber, Teletext
> For sale: One Russian space station. Needs minor repairs.
> 
> --
> http://www.piclist.com hint: The PICList is archived three different
> ways.  See http://www.piclist.com/#archives for details.


gnupic@linuxhacker.org