First, a question: Can't you do this with alternating 1s and 0s, i.e. 1010101010101010 and 0101010101010101? This puts all bits on, and all off, in only two tests.
As for determining the results, when you do DIO in this manner (two ports) you can get a single I32 number as a result. Then, you just do a direct compare to determine if they are equal, and get a boolean result. As for how to figure out your results overall, if you choose to do 65,000 individual tests, all you do is loop the test, put the boolean result for each in an array (using an initialized array of FALSE, and replace array element in your loop) and outside of the loop, AND Array Elements. This will be your overall result.
Feel free to post here or email me if you have further que
stions.