<<< SBB Instruction, Integer Subtraction with Borrow | Index | Assignment: Adding 64-bit and Subtracting 96-bit Integers >>> |
When an immediate value is used in SBB as an operand, it is sign-extended to the length of the destination operand.
The SBB instruction does not distinguish between signed or unsigned operands.
Instead, the processor evaluates the result for both data types and sets the
OF flag to indicate a borrow in the signed result.
CF flag to indicate a borrow in the unsigned result.
The SF flag indicates the sign of the signed result.
The SBB instruction is usually executed as part of a chained multibyte or multiword subtraction, in which a SUB or SBB instruction is followed by another SBB instruction.
<<< SBB Instruction, Integer Subtraction with Borrow | Index | Assignment: Adding 64-bit and Subtracting 96-bit Integers >>> |