Hi all,
I'm looking for a steer using a pointer. The code is working in a fashion but i'm not setting the bit i require.
The code looks at db17. This is 2D array 1-18 switches with 1-6 integer values. This is dbw0 - dbw214. The value in the DBW (1-18) will point to the bool i require to turn on.
E.G. 6 in any DBW (0-214) will turn on DB17.DBX216.6
8 in any DBW (0-214) will turn on DB17.DBX217.0
The issue i'm having is how to keep the value in AR1 between 0.0 and 2.2 so i only address bits in my range. I'm adding 2 to this to increment the word to look at but then i offset the bool i require.
Regards,
Barry.
I'm looking for a steer using a pointer. The code is working in a fashion but i'm not setting the bit i require.
The code looks at db17. This is 2D array 1-18 switches with 1-6 integer values. This is dbw0 - dbw214. The value in the DBW (1-18) will point to the bool i require to turn on.
E.G. 6 in any DBW (0-214) will turn on DB17.DBX216.6
8 in any DBW (0-214) will turn on DB17.DBX217.0
The issue i'm having is how to keep the value in AR1 between 0.0 and 2.2 so i only address bits in my range. I'm adding 2 to this to increment the word to look at but then i offset the bool i require.
Regards,
Barry.