Skip to content

ByteExtensions.DidAdditionHalfCarry Method ​

Definition ​

Determines whether an addition produced a half carry, that is, a carry from bit 3 to bit 4.

c#
public static bool DidAdditionHalfCarry(this Byte sum, Byte left, Byte right);

View source

Parameters ​

NameTypeDescription
sumByteThe result of the addition.
leftByteThe left operand.
rightByteThe right operand.

Returns ​

Boolean

true if the addition produced a half carry; false otherwise.