Samsung S3F80P5X User Manual page 143

S3f80p5 microcontrollers
Table of Contents

Advertisement

S3F80P5_UM_ REV1.00
BITS
— Bit Set
BITS
dst.b
dst(b) ← 1
Operation:
The BITS instruction sets the specified bit within the destination without affecting any other bits in
the destination.
Flags:
No flags are affected.
Format:
opc
NOTE: In the second byte of the instruction format, the destination address is four bits, the bit address 'b'
Example:
Given: R1 = 07H:
BITS
If working register R1 contains the value 07H (00000111B), the statement "BITS R1.3" sets bit
three of the destination register R1 to "1", leaving the value 0FH (00001111B).
dst | b | 1
is three bits, and the LSB address value is one bit in length.
→ R1 = 0FH
R1.3
Bytes
Cycles
Opcode
2
4
INSTRUCTION SET
Addr Mode
(Hex)
dst
77
rb
6-21

Advertisement

Table of Contents
loading

Table of Contents