sbc

Subtract with Carry

SBC <Wd>, <Wn>, <Wm>

Subtracts with borrow (Carry - 1).

Details

The Subtract with Carry instruction subtracts with borrow (Carry - 1).

Pseudocode Operation

Wd ← Wn - Wm
// Flags affected: N, Z, C, V

Example

SBC w0, w1, w2

Encoding

Binary Layout
01011010
000
Rm
000000
Rn
Rd
 
Format Data Processing
Opcode 0x5A000000
Extension Base

Operands

  • Wd
    Destination 32-bit integer register
  • Wn
    First source / base 32-bit integer register
  • Wm
    Second source / offset 32-bit integer register