kzdev Member K Join Date Apr 2010 Location Athens Posts 3 Apr 13, 2010 #1 how to convert a bool array to word? for example I have the array bool variable with name test_arr[16]. How can assign it to the word variable with name test_word?
how to convert a bool array to word? for example I have the array bool variable with name test_arr[16]. How can assign it to the word variable with name test_word?
lostcontrol Lifetime Supporting Member L Join Date May 2009 Location NeverSayNever Posts 1,071 Apr 13, 2010 #2 how to convert a bool array to word? for example I have the array bool variable with name test_arr[16]. How can assign it to the word variable with name test_word? Click to expand... Assuming that test_arr[16] has a base of W0.00, and test_word has an address of D0, then simply use MOV W0 D0.
how to convert a bool array to word? for example I have the array bool variable with name test_arr[16]. How can assign it to the word variable with name test_word? Click to expand... Assuming that test_arr[16] has a base of W0.00, and test_word has an address of D0, then simply use MOV W0 D0.
kzdev Member OP K Join Date Apr 2010 Location Athens Posts 3 Apr 13, 2010 #3 But what can I do in the case that the test_arr[] and test_word is a local variable where they have unknown address?
But what can I do in the case that the test_arr[] and test_word is a local variable where they have unknown address?
lostcontrol Lifetime Supporting Member L Join Date May 2009 Location NeverSayNever Posts 1,071 Apr 13, 2010 #4 kzdev said: But what can I do in the case that the test_arr[] and test_word is a local variable where they have unknown address? Click to expand... You must be using a CJ2 then? Why not just give them an address, that is easy enought to manage.
kzdev said: But what can I do in the case that the test_arr[] and test_word is a local variable where they have unknown address? Click to expand... You must be using a CJ2 then? Why not just give them an address, that is easy enought to manage.