Quantcast
Channel: MEL PICBASIC Forum
Viewing all articles
Browse latest Browse all 4746

detect overflow of multiply/ div32 result

$
0
0
I want to multiply two word vars and then do a div32 divide where a or b can be 0-$ffff

dummy = a * b
result = div32 100

is there a way to detect if the result is > $ffff so I could
try
result = div32 1000

etc etc.

till there is no overflow

Quote:

or oh for a icd that works that could monitor r(x)

Viewing all articles
Browse latest Browse all 4746

Trending Articles