S3C84E5/C84E9/P84E9

INSTRUCTION SET

 

 

BITS — Bit Set

BITSdst.b

Operation: dst(b) 1

The BITS instruction sets the specified bit within the destination without affecting any other bit 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 the 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 148
Image 148
Samsung S3C84E5 user manual Bits Bit Set, BITSdst.b Operation dstb ←