Quote Originally Posted by richard View Post
One other thing I notice is that the tables mostly have 152 members , x is always between 0 and 150 as far as i can see

the second table had 153 members , typo ?
Yep. That was a typo. Thanks for catching that.

Thanks so much for helping me with this. Sorry for not getting back sooner. I was out for two weeks with Covid and then I got sidetracked by a bunch of year-end stuff. Anyhow...The program doesn't work because of some mistake I made in the new calibration routine. But I did swap out the look up tables with your new ASM tables in the original "verified" program and they work perfectly. And saved 25 words!

So now I've got to work on the calibration routine. I should be able to make it work in 47 words. After setting it aside for a while, I think I'm going to start over and come at it from a different angle.