<< Previous | Next >>

SET b,r     Set Bit     Rabbit 2000/3000/4000 Instruction
Opcode
Instruction
Clocks
Operation
b,r A B C D E H L SET b,r 4 (2,2) r = r | bit b
0

CB C7

CB C0

CB C1

CB C2

CB C3

CB C4

CB C5



1

CB CF

CB C8

CB C9

CB CA

CB CB

CB CC

CB CD




2

CB D7

CB D0

CB D1

CB D2

CB D3

CB D4

CB D5




3

CB DF

CB D8

CB D9

CB DA

CB DB

CB DC

CB DD




4

CB E7

CB E0

CB E1

CB E2

CB E3

CB E4

CB E5




5

CB EF

CB E8

CB E9

CB EA

CB EB

CB EC

CB ED




6

CB F7

CB F0

CB F1

CB F2

CB F3

CB F4

CB F5




7

CB FF

CB F8

CB F9

CB FA

CB FB

CB FC

CB FD





Flags ALTD IOI/IOE
S
Z
L/V
C
F
R
SP
S
D
-
-
-
-
·

Description

Sets bit b (any of the bits 0, 1, 2, 3, 4, 5, 6, or 7) of the data in r (any of the registers A, B, C, D, E, H, or L).

Example

If A contains 1100 0000, after the execution of the operation:


SET 3,A

A contains 1100 1000.


<< Previous | Next >>