Page 1 of 1

Array manipulation as Parameter

Posted: Tue Apr 12, 2022 9:44 am
by PAAbbott
Good Day

I have a user macro that has bytes D0 to D7 that needs to be input as data.

In an effort to simplify code and reduce the data handling complexity of the data ( u know passing one byte at a time to the macro D0 = D0)
I have setup an array ARRAY[8] as a parameter

However when I call the macro and try to set it up to take the data from the global array I seem to be missing something in my syntax
I have checked the wiki and aren't finding any thing definitive on the handling of an array.

any suggestion on what I am missing or a source of info on this.

kind regards
Andre

Re: Array manipulation as Parameter

Posted: Tue Apr 12, 2022 9:50 am
by mnfisher
Can you post your current code?

Array handling is fairly straightforward for example x[0] = 1 sets the first element of the array to 1. Variable = x[7] sets variable to the 8th element of the array.

Martin