Skip to content

ByteExtensions.DidSubtractionHalfBorrow Method

Definition

Determines whether a subtraction produced a half borrow, i.e. a borrow from bit 4 to bit 3.

public static bool DidSubtractionHalfBorrow(this Byte difference, Byte left, Byte right);

View source

Parameters

Name Type Description
difference Byte The result of the subtraction.
left Byte The left operand.
right Byte The right operand.

Returns

Boolean

true if the subtraction produced a half borrow; false otherwise.