Samsung S3F80JB manual Bits Bit Set, Bits dst.b Operation dstb ←

Models: S3F80JB

1 346
Download 346 pages 34.13 Kb
Page 149
Image 149

S3F80JBINSTRUCTION SET

BITS — Bit Set

BITS dst.b

Operation: dst(b) 1

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

dst b 1

Bytes

Cycles

Opcode

Addr Mode

 

 

(Hex)

dst

2

4

77

rb

NOTE: In the second byte of the instruction format, the destination address is four bits, the bit address 'b' is three bits, and the LSB address value is one bit in length.

Example: Given: R1 = 07H:

BITS R1.3

R1 = 0FH

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).

6-21

Page 149
Image 149
Samsung S3F80JB manual Bits Bit Set, Bits dst.b Operation dstb ←