First page Back Continue Last page Overview Graphics

Multibyte Subtraction


When subtracting, a borrow occurs whenever a larger number is subtracted from a smaller number. The carry flag is used to indicate a borrow after a subtraction. When set, the carry flag indicates that a borrow has occurred.

The following subtraction results in a borrow.
ldaa #$cf
suba #$e2