[Color Computer] [Coco] Bug in FOR NEXT ?
Robert Gault
robert.gault at worldnet.att.net
Sat Jun 3 19:44:15 EDT 2006
Rather than speculating on this, the code can be read in the Unravelled
series. There are no tests in FOR, all testing is done in NEXT. The NEXT
routine is at $B0F8.
Since FOR does no testing, there is at least one pass through the loop
even if the conditions are terminal. NEXT updates the index per STEP
direction and then compares the index to the terminal condition. This
last is at $B121-$B126.
More information about the Coco
mailing list