Kojekude Posted May 28, 2021 Report Share Posted May 28, 2021 I need help, I want to know if two arrays have identical values. What are possible outputs values of this function (F - Result index) and what is the meaning of these values? Thank you Quote Link to comment Share on other sites More sharing options...
NoamM Posted June 3, 2021 Report Share Posted June 3, 2021 Dear Kojekude, From Help section:Use this to compare sections of an array of bits or registers. Compare returns the location of the first array element that differs where the given arrays differ, and -1 when they are equal. Parameter Name Purpose A First Array Select the Array to compare to B Start Index in first Array Set the start member for the compare operation C Second Array Select the Array to compare D Start Index in second Array Set the start member for the compare operation E Compare Length This is the number of registers for the compare operation. F Result This is the tag that contains the result - The location, in the second array, of the first element that differs from the first - -1 if the array values are identical - -2 if the index values, or length, exceed the length of the array. Quote Link to comment Share on other sites More sharing options...
Kojekude Posted June 9, 2021 Author Report Share Posted June 9, 2021 Thank you so much! It was my fault for not looking carefully enough in Help section. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.