Subject: Re: detect arithmetic overflow
To: <>
From: David Laight <david@l8s.co.uk>
List: current-users
Date: 08/06/2003 15:54:36
> Isn't the two's complement arithmetic rule for overflow that the carry bit
> into the signed bit must equal to the carry bit out of the signed bit?

yes - but both the C and V flags are hard to get hold of in a C program :-(


	David

-- 
David Laight: david@l8s.co.uk