Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: etElMadr on January 11, 2022, 09:01:02 PM

Title: Request: Negative Indirect Reference
Post by: etElMadr on January 11, 2022, 09:01:02 PM
X[v1+1] works, X[v1-1] doesn't. Any chance negative indexes can be added?

Working around the limitation with a couple extra rungs for now.
Title: Re: Request: Negative Indirect Reference
Post by: Bolt on January 11, 2022, 09:56:58 PM
It's been brought up before, see here: https://forum.hosteng.com/index.php?topic=2621.msg21385#msg21385

Keep in mind you can do this in a MATH instruction, on both the element and expression field.
Title: Re: Request: Negative Indirect Reference
Post by: BobO on January 12, 2022, 12:59:16 PM
When originally designed, it was going to be bipolar -32 to +31, but we settled on +0 to 63. Guess that wasn't a good choice, but it would be hard to change now.

But as Bolt mentioned, you can do it in a MATH box, both as an input and as an output.