6.48.1 Description

This instruction performs a compare between two registers Rd and Rr and skips the next instruction if Rd == Rr.

Operation:

(i)

If Rd == Rr then PC ← PC + 2 (or 3) else PC ← PC + 1

Syntax:

Operands:

Program Counter:

(i)

CPSE Rd,Rr

0 ≤ d ≤ 31, 0 ≤ r ≤ 31

PC ← PC + 1, Condition false - no skip

PC ← PC + 2, Skip a one word instruction

PC ← PC + 3, Skip a two word instruction

16-bit Opcode:

000100rdddddrrrr