Bits Bit Set - Samsung S3C80M4/F80M4 User Manual

8-bit cmos microcontrollers
Table of Contents

Advertisement

S3C80M4/F80M4
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.
No flags are affected.
Flags:
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.3
R1 = 0FH
Bytes
Cycles
Opcode
(Hex)
2
4
INSTRUCTION SET
Addr Mode
dst
77
rb
6-21

Advertisement

Table of Contents
loading

Table of Contents