gnupic: GPAL loops bug?
Subject:
Re: GPAL loops bug?
From:
Craig Franklin ####@####.####
Date:
27 Oct 2004 06:25:37 +0100
Message-Id: <417EEB52.7040105@users.sourceforge.net>
The main problem is a couple of missing banksels. It is easy to fix,
but I still don't like the code that it generated. Give me a couple of
days to fix the error and improve the generated code.
craig_franklin wrote:
>-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: ####@####.####
>>
>>
>>