Checking for a smaller result is a simple trick, thanks,
right now my code is never suposed to exced the Max= 4,294,967,296
so i am ignoring the OVRFLOW32 = 0.
This is the code that i am using
Would this be ok? i made some tests and it seems ok but your experience might see anything wrong here.Code:Bigword var word [2] BigwordL var BigWord(0) BigwordH var BigWord(1) Bigword1 var word [2] Bigword1L var BigWord(0) Bigword1H var BigWord(1) AddTwoBigWords: 'Adds Bigword1 and BigWord2 result in BigWord BigWordH = BigWordH + BigWord1H ;ignoring any overflow BigWordL = BigWordL + BigWord1L if BigWordL < BigWord1L then BigWordH = BigWordH+1 ;ignoring any overflow endif return




Bookmarks