In RSL500 with ML1100, I have a N7 integer file with 256 elements [N7: - N7:255]. Each element has an integer number stored in it, for agrugments sake, the stored integers are random. I'm trying to figure out if I know the value of the random integer [ie. 75], if there's a way I can get which element it's stored in? [ie. N7:56] and if the number is not in any of the N7 elements, then the element which would have the closest number to ie. 75?. I don't think there's an instruction set for it, but would the easiest way be to write a function to loop through the whole 256 elements each time I need to know the element?
As always, any feedback is greatly appreciated.
TIA
Jr.
As always, any feedback is greatly appreciated.
TIA
Jr.