Semiconductor Group
4-71
1998-04-01
Instruction Set
C500 Family
SETB
<bit>
Function:
Set bit
Description:
SETB sets the indicated bit to one. SETB can operate on the carry flag or any
directiy addressable bit. No other flags are affected.
Example:
The carry flag is cleared. Output port 1 has been written with the value 34H
(00110100B). The instructions
SETB
C
SETB
P1.0
will leave the carry flag set to 1 and change the data output on port 1 to 35H
(00110101B).
SETB
C
Operation:
SETB
(C)
¬
1
Bytes:
1
Cycles:
1
SETB
bit
Operation:
SETB
(bit)
¬
1
Bytes:
2
Cycles:
1
Encoding:
1 1 0 1
0 0 1 1
Encoding:
1 1 0 1
0 0 1 0
bit address