Texas Instruments MSP430x1xx User Manual

Page 363

Advertising
background image

Instruction Set Overview

B-13

Instruction Set Description

BIC[.W]

Clear bits in destination

BIC.B

Clear bits in destination

Syntax

BIC

src,dst or BIC.W src,dst

BIC.B

src,dst

Operation

.NOT.src .AND. dst –> dst

Description

The inverted source operand and the destination operand are logically
ANDed. The result is placed into the destination. The source operand is not
affected.

Status Bits

N: Not affected
Z: Not affected
C: Not affected
V: Not affected

Mode Bits

OscOff, CPUOff, and GIE are not affected.

Example

The six MSBs of the RAM word LEO are cleared.

BIC

#0FC00h,LEO

; Clear 6 MSBs in MEM(LEO)

Example

The five MSBs of the RAM byte LEO are cleared.

BIC.B

#0F8h,LEO

; Clear 5 MSBs in Ram location LEO

Example

The port pins P0 and P1 are cleared.

P0OUT

.equ

011h;

Definition of port address

P0_0

.equ

01h

P0_1

.equ

02h

BIC.B

#P0_0+P0_1,&P0OUT

;Set P0.0 and P0.1 to low

Advertising