[Coco] 6809 example

Theodore Evans (Alex) alxevans at concentric.net
Sat Jan 17 15:32:48 EST 2004


On Jan 17, 2004, at 6:27 AM, Robert Gault wrote:

> Bob Emery wrote:
>> Shouldn't there be a Y=0: at the beginning of line 30? ;-)
>> Otherwise PASS will always max out since the flag isn't being reset


> No, because Disk Basic always zeros out variable on RUN. If you jump 
> into the middle of a program with GOTOxyz there might be a problem. In 
> any case, that is a point I was trying to make in this comparison. 
> High level languages take care of initial conditions and loop counters 
> (amongst other things), low level languages don't.

That is fine except if the area isn't sorted when when the program is 
started it sets Y to 1 on the first pass and the value of Y never gets 
changed again so the program runs forever.




More information about the Coco mailing list