gnupic: GPAL loops bug?
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