ByteExtensions.DidSubtractionHalfBorrow Method ​
Definition ​
Determines whether a subtraction produced a half borrow, that is, a borrow from bit 4 to bit 3.
c#
public static bool DidSubtractionHalfBorrow(this Byte difference, Byte left, Byte right);Parameters ​
| Name | Type | Description |
|---|---|---|
difference | Byte | The result of the subtraction. |
left | Byte | The left operand. |
right | Byte | The right operand. |
Returns ​
true if the subtraction produced a half borrow; false otherwise.