Skip to content

ByteExtensions.DidAdditionHalfCarry Method

Definition

Determines whether an addition produced a half carry, i.e. a carry from bit 3 to bit 4.

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

View source

Parameters

Name Type Description
sum Byte The result of the addition.
left Byte The left operand.
right Byte The right operand.

Returns

Boolean

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