Quote:
Originally posted by rbayer
The ** op is not exponentiation. It is just muplication, but returns the high-order 16-bits instead of the normal low-order 16. Combined with the normal * op, you can get the full 32-bit result that could come from multiplying two 16-bit numbers. As far as I know, PBASIC doesn't have an exponentiation op.
--Rob
|
d'oh ... I'm thinking in Perl. Sorry about that. The only sort of exponention op I know of is DCD, which is just 2^n (or 1 << n), where n is the argument. Hmm ... I can pull something out of my failed code ...
Code:
bitVAR = DCD (byteVAR - a) - 1 MAX 1 '!(byteVAR == a)
That just reverses the logic (0 if they are equal, 1 if they are not). I don't know the error handling if DCD's argument is over 15, so the statement may need another MAX. Of course, it's past the realm of usefulness I suppose.
Stephen