bset
Sizes
byte, long
Affected Flags
X
N
Z
V
C
-
-
✱
-
-
Operands
Op 1
Dn/Im
Op 2
Dn/(An)/d(An)/Ea/<label>/d(An,Xn)
Sets to 1 the bit of the second operand at the position of the value of the first operand
Sets to 1 the bit of the second operand at the position of the value of the first operand
* --- Sets the specified bit ---
move.l #%0000, d0
bset #2, d0 ; bit 2 was 0 (Z set), now 1. d0 = %0100
move.l #%0100, d1
bset #2, d1 ; bit 2 was already 1 (Z clear), no change