This looks like a very minor question, only a millimeter out of 65 meters, but the uBASIC docs say that maximum distance we can command the lens to focus to is 65536mm. That's a familiar number to anyone who works in binary, 2^16, and that's why it worries me. Do Canon and CHDK read the lowest 16 bits of the binary number, or the 17th bit, or something more arbitrary? If I enter 65535, the camera processor gets the binary number
1111111111111111 If I enter 65536 and the camera only cares about the lowest 16 bits, then it sees (1)
0000000000000000, so having added 1 to the previous number turns the result to 0. Or does the camera look for that 17th bit and interpret that alone as infinity?
Or does it use 32-bit numbers and only care that the number is greater than 65535?
I notice that CHDK's focus override counts up to 65535, then loops back to zero in my S3 IS.
Eric