This instruction tests a single bit in a register and skips the next instruction if the bit is set.
Operation: |
|||
(i) |
If Rr(b) = 1 then PC ← PC + 2 (or 3) else PC ← PC + 1 |
||
Syntax: |
Operands: |
Program Counter: |
|
(i) |
SBRS Rr,b |
0 ≤ r ≤ 31, 0 ≤ b ≤ 7 |
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:
1111 | 111r | rrrr | 0bbb |