Description:SETB sets the indicated bit to one. SETB can operate on the carry flag or any directly
addressable bit. No other flags are aff ected.
Example: e carry flag is cleared. Output Port 1 has been written with the value 34H
(00110100B). e 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
Bytes: 1
Cycles: 1
Encoding:1 1 0 10 0 1 1
Operation: SETB
(C) ← 1
SETB bit
Bytes: 2
Cycles: 1
Encoding:1 1 0 10 0 1 0
bit address
Operation: SETB
(bit) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.