gnupic: GPAL loops bug?
Subject:
Re: GPAL loops bug?
From:
####@####.####
Date:
26 Oct 2004 19:13:16 +0100
Message-Id: <102620041812.21216.417E939C0001BAF1000052E0220073474802070405020E9D00A109070E9D0C@comcast.net>
-S outputs assembly.
It is very ugly!!
Looks like a bug in the code generator. I will fix it tonight.
-------------- Original message --------------
> On Wed, Oct 27, 2004 at 02:24:59AM +1300, David McNab wrote:
> > Hi,
> >
> > I'm trying to implement a delay function in GPAL, for instance:
> >
> > procedure delay is
> >
> > counter : uint24;
> >
> > begin
> > counter = 0xfffff;
> > while counter > 0
> > loop
> > counter = counter - 1;
> > end loop;
> >
> > end procedure;
> >
> > But when I call the procedure, no looping happens.
> > Ditto if I use a 'for' loop. I've also tried nesting levels of loop
> > using only uint8. I've tried pretty much everything, but still gpal is
> > generating code which doesn't loop.
> >
> > (I'm running latest CVS).
> >
> > Any ideas?
>
> Can gpal emit the assembly that it compiles to? If so then why not post
> the output from the compiler?
>
> BAJ
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
>