Description

Subtracts a register and a constant, and places the result in the destination register Rd. This instruction is working on Register R16 to R31 and is very well suited for operations on the X, Y, and Z-pointers.

 

Operation:

(i)

Rd ← Rd - K

 

Syntax:

Operands:

Program Counter:

(i)

SUBI Rd,K

16 ≤ d ≤ 31, 0 ≤ K ≤ 255

PC ← PC + 1

16-bit Opcode:

0101 KKKK dddd KKKK