gnupic: GPAL loops bug?


Previous by date: 26 Oct 2004 14:25:14 +0100 Re: Yikes, I crashed GPAL, Craig Franklin
Next by date: 26 Oct 2004 14:25:14 +0100 Re: how to init EEPROM internal memory ?, Nicaise J-Ch
Previous in thread:
Next in thread: 26 Oct 2004 14:25:14 +0100 Re: GPAL loops bug?, Byron A Jeff

Subject: GPAL loops bug?
From: David McNab ####@####.####
Date: 26 Oct 2004 14:25:14 +0100
Message-Id: <417E502B.9060701@rebirthing.co.nz>

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?

-- 
Cheers
David

Previous by date: 26 Oct 2004 14:25:14 +0100 Re: Yikes, I crashed GPAL, Craig Franklin
Next by date: 26 Oct 2004 14:25:14 +0100 Re: how to init EEPROM internal memory ?, Nicaise J-Ch
Previous in thread:
Next in thread: 26 Oct 2004 14:25:14 +0100 Re: GPAL loops bug?, Byron A Jeff


Powered by ezmlm-browse 0.20.