gbradley
Lifetime Supporting Member
I have a question on Copying integer values?
Let’s say that I am making an Icee machine.
I have three flavors.
Apple, Grape and Cherry.
The Mix times and amounts for:
Apple are in Integer file N10
Grape are in Integer file N11
Cherry are in Integer file N12
*********MixTime******** CoolTime ******* Amount
Apple0 *****N10:0 ******** N10:1 ******** N10:2
********** 5 ******** 20 ********10
Grape1*** N11:0 ***** N11:1 ******** N11:2
********* 8 ********* 30 ******** 20
Cherry2***** N12:0 ******** N12:1 ******* N12:2
********* 4 ********** 25 ******** 15
When I start the machine, If Apple is selected, I copy the integer files from N10, and put them into N50.
I did this two times, once for the first 128, and then again for the second 128.
It wouldn’t let me do all 256 at once. (I’m sure that there is a good reason for this)
SOR XIC B3:0/0 EQU N7:220 0 BST COP #N10:0 #N50:0 128 NXB COP #N10:128 #N50:128 128 BND EOR
I set the timer presets using the resultant N50 values.
Does this scheme seem reasonable?
Is there a way to use indirect addressing with different integer Files?
That is… instead of copying and using the N50 values, use a value like {N1[N7:220]:0}
Thanks
GBradley
Let’s say that I am making an Icee machine.
I have three flavors.
Apple, Grape and Cherry.
The Mix times and amounts for:
Apple are in Integer file N10
Grape are in Integer file N11
Cherry are in Integer file N12
*********MixTime******** CoolTime ******* Amount
Apple0 *****N10:0 ******** N10:1 ******** N10:2
********** 5 ******** 20 ********10
Grape1*** N11:0 ***** N11:1 ******** N11:2
********* 8 ********* 30 ******** 20
Cherry2***** N12:0 ******** N12:1 ******* N12:2
********* 4 ********** 25 ******** 15
When I start the machine, If Apple is selected, I copy the integer files from N10, and put them into N50.
I did this two times, once for the first 128, and then again for the second 128.
It wouldn’t let me do all 256 at once. (I’m sure that there is a good reason for this)
SOR XIC B3:0/0 EQU N7:220 0 BST COP #N10:0 #N50:0 128 NXB COP #N10:128 #N50:128 128 BND EOR
I set the timer presets using the resultant N50 values.
Does this scheme seem reasonable?
Is there a way to use indirect addressing with different integer Files?
That is… instead of copying and using the N50 values, use a value like {N1[N7:220]:0}
Thanks
GBradley