Bits — Bit Set - Samsung S3F84B8 User Manual

8-bit cmos
Hide thumbs Also See for S3F84B8:
Table of Contents

Advertisement

S3F84B8_UM_REV 1.00
6.3.8 BITS — BIT SET
dst.b
BITS
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
In the second byte of instruction format, the destination address is four bits, the bit address 'b' is three bits,
NOTE:
and the LSB address value is one bit in length.
Given R1 = 07H:
Example:
BITS
If the value of working register R1 is 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
R1.3
R1 = 0FH
Bytes
Cycles
2
6-20
6 INSTRUCTION SET
Opcode
Addr Mode
(Hex)
4
77
dst
rb

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents