ON 20050423@8:32:39 AM at page:
http://www.sxlist.com/scenix/lib/math/mul/16x16ht_sx.htm#38464.8221643519
James Newton[JMN-EFP-786] published post 38464.8221643519
The HI-TECH C library 16x16 multiplication will produce an error anytime there is a carry out of btemp while the value in btemp+1 equals $FF
Peter (pjv)
|Delete 'P-' before: '' but after: '
OOPS
Looks like I made a mistake; on 16 bits it just generates an overflow. It would cause an error if the code is expanded to 24 bits as the resultant carry is lost in loading ++btemp+1 into w.
Peter (pjv)
|Delete 'P-' before: '' but after: '