Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: Controls Guy on May 21, 2019, 02:18:50 PM

Title: FOR-NEXT with negative increment
Post by: Controls Guy on May 21, 2019, 02:18:50 PM
I could have sworn I've done a FOR-NEXT with a negative increment value, but DMD won't allow it.  Am I having a senior moment?  Even if so, is it feasible to make negative increments happen?
Title: Re: FOR-NEXT with negative increment
Post by: ATU on May 21, 2019, 08:27:51 PM
Host probably wanted to keep things positive, none of this negativity.
Title: Re: FOR-NEXT with negative increment
Post by: BobO on May 22, 2019, 12:35:29 AM
It kept the implementation cleaner. And because we are mean.
Title: Re: FOR-NEXT with negative increment
Post by: Controls Guy on May 22, 2019, 12:41:16 AM
I knew it!  However, you fail at meanness, because typically a FOR is for an index and since 90% of my output instructions are MATH boxes, where you let us do expression indexes anyway....it's all good!