You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
We faced an issue with your code in some special case when calculating overflow flag with your method.
Take any arbitrary positive number and 10000000000000000000000000000000. if these are the inputs of CMP or SUB commands, the overflow flag will be set to 0. However, it should be 1. This happens because neg of above number will equal itself, and cin and cout will both be zero.
The text was updated successfully, but these errors were encountered:
Hi,
We faced an issue with your code in some special case when calculating overflow flag with your method.
Take any arbitrary positive number and
10000000000000000000000000000000
. if these are the inputs of CMP or SUB commands, the overflow flag will be set to0
. However, it should be1
. This happens becauseneg
of above number will equal itself, andcin
andcout
will both be zero.The text was updated successfully, but these errors were encountered: