UM012811-0904
eZ8 CPU Instruction Set Description
eZ8 CPU
User Manual
72
BSET
Bit Set
BSET bit, dst
Operation
dst[bit]
←
1
Description
The selected bit in the destination operand is set to 1. All other bits are unaffected.
Flags
Attributes
Example
•
If Working Register R7 contains the value
38H
(00111000B), the statement:
BSET 2, R7
Object Code: E2 A7
leaves the value
3CH
(00111010B)
in Working Register R7 and clears the V flag.
C
Unaffected.
Z
Set if the result is zero; reset otherwise.
S
Set if the result is negative; reset otherwise.
V
Reset to 0.
D
Unaffected.
H
Unaffected.
Mnemonic
Bit, Destination
Opcode (Hex)
Operand 1
Operand 2
Operand 3
BSET
bit, r1
E2
{1B, bit, r1}
—
—