gnupic: GPAL loops bug?
Subject:
Re: GPAL loops bug?
From:
Byron A Jeff ####@####.####
Date:
26 Oct 2004 16:19:24 +0100
Message-Id: <20041026151919.GA5491@cleon.cc.gatech.edu>
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