View Single Post
Old 29th December 2010, 13:26   #358  |  Link
jmac698
Registered User
 
Join Date: Jan 2006
Posts: 1,867
I have a request that would make my life a lot easier. I'd like logic arithmetic operators available in the polish notiation, and I'd like to set the rounding mode to also truncate.
Try adding two 16 bit numbers with mt_lut, it's really a pain! I can't get a high byte because /256 will round, and there's no AND, so my only choice is to subtract expr 256 % 256 / to do it. Now try testing for carry from adding two 16bit numbers. That's a huge expression.
It seems like you could just not limit &. ie 255 15 & (should) gives 15 (but now 1) and still 1 1 == 0 0 == ^ gives 1, 1 1 == gives 1, so why limit & to 1 bit?

Last edited by jmac698; 29th December 2010 at 13:32.
jmac698 is offline   Reply With Quote