And what I forgot at the first indication.
It says to point to p#8.0.
Why is it 8.0?
If I see the whole first part of the FC10 it is like this: (If i'm not seeing it all wron here)
It loads p##values_to_average so it loads the beginning of the table = DB8.DBX10.0 right?
It loads AR1
It loads the word from AR1 at place 2.0 so that's the second word = entries in table = DB8.DBW12?
It transfers that to #elem_count
It loads word 4.0 so thats DB8.DBW14 = first sample in the table?
Then it transfers that to #db_num what I don't really understand..
And opens DB #db_num I guess that has to be DB8 or DB9 in my program so I don't get it why it says [AR1, P#4.0] and not just DB8 or DB9
after that it loads WORD [AR1, P#6.0] what you changed into 8.0. But what this does is not really clear.
Kind regards,
Matthias V