ON 20101012@3:35:09 PM at page: On a web page you were interested in at: http://www.piclist.com/microchip/math/sub/16bsubCZ.htm#40457.110150463 James Newton[JMN-EFP-786] published post 40457.110150463 doesn't work for 0x0000 - 0xFFFF. The result should be 0x0001 and it's 0xFF01. The problem is that carry from LSB is added to f03 instead to result (f01). But of course that's done because carry flag will be lost at the end. So the only way is to store carry flag somewhere until the end. |Delete 'P-' before: '' but after: '