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);Parameters ​
| Name | Type | Description |
|---|---|---|
sum | Byte | The result of the addition. |
left | Byte | The left operand. |
right | Byte | The right operand. |
Returns ​
true if the addition produced a half carry; false otherwise.