Page 1 of 1

Why, the result is not the same?

Posted: Tue Jan 19, 2010 9:44 am
by j50501313

Code: Select all


ipnum.q = -632473845
depth.l =  29

Debug (-632473845  - $FFFFFFFF) And (1 << 29)

Debug (ipnum - $FFFFFFFF) And (1 << depth )


Re: Why, the result is not the same?

Posted: Tue Jan 19, 2010 9:55 am
by Fred
'And' and other logical operands are not supported in numeric expressions.

Re: Why, the result is not the same?

Posted: Tue Jan 19, 2010 1:32 pm
by Kaeru Gaman

Code: Select all

ipnum.q = -632473845
depth.l =  29

Debug (-632473845  - $FFFFFFFF) & (1 << 29)

Debug (ipnum - $FFFFFFFF) & (1 << depth )
both debug Zero.

Re: Why, the result is not the same?

Posted: Tue Jan 19, 2010 7:44 pm
by j50501313
Thanks