ON 20100205@3:22:40 PM at page: On a web page you were interested in at: http://www.piclist.com/microchip/math/div/16by8lz.htm#40214.1820717593 James Newton[JMN-EFP-786] Published and replied to post 40214.1820717593 by norak.van |Insert 'At that point in the code, we know we are not dividing by zero; we already tested for that withbtfsc bf_zero ; if zero. Clearing bf_zero after we detect an overflow, just makes sure the routine does not send an ambiguous error message. At this point, we might have an overflow (see the previous lines) but we certainly do not have a divide by zero error.' at: '' norak.van@gmail.com asks:
hi,
only one comment i suppose i don´t understand

this instruction:
bcf bf_zero ; NZ (in case of overflow error)

Always clear FLAG Z --> so always indicates an overflow error ?
|Delete 'P-' before: '' but after: 'norak.van@gmail.com " Thanks James,

You are right, I now understand.
thanks" |Delete 'P-' before: '' but after: '