Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
LOOPXY was an unfinished instruction for 2D looping using the ECX and EDX registers, introduced during the vectors expansion, it took two pointers, we may never know how blackphoenix intended its implementation so this is my guess on how to make it useful from what little remnants there were of it in the code & documentation.
This is, so far, the only LOOP instruction that exits on -1 rather than 0, so it can access 0 indexes for things.
Pseudocode for how the instruction actually works:
Usage example, iterating over 6 vector 4's to get an estimate of F=MA using the first three indices to get a constant velocity for A and the 4th as M
This may be a gimmicky instruction/usecase, but it's been compileable and useless for more than 5 years now, if desired by maintainers the instruction can be removed instead.