> 1. Your "do i times" loop performs the loop test at the END of > the loop, so i=0 results in 256 (or 65536, or whatever) > iterations. Is that what you intended? > >1. The loop test at the end is intentional (so yes, i=0 will result in 256 >iterations). For a while I was using this syntax, > do > // stuff > loop i times >to better reflect that. Maybe I should switch back? In any case, I'd like >Atypical control structures to translate into as little additional code as >possible. The hope is that the Atypical programmer will understand (from the >yet-to-be-written documentation) that a counted loop translates into a >simple decfsz/goto combination, and if he wants to test for 0, he'll have to >do it himself. Hmm, and what happens if I want the loop to execute once, and only once. I don't want to be fiddling the variable so that I have to enter it as i=1, or i-1 to achieve this (or any other loop count). If the value needs to be fiddled so that 256 is a possible count then that should be hidden. Personally I would expect the count to be 0 to 255 for an 8 bit counter, not 1-256. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body