MSP430 Instructions
4-67
16-Bit MSP430X CPU
BIS[.W]
Set bits set in source word in destination word
BIS.B
Set bits set in source byte in destination byte
Syntax
BIS
src,dst or BIS.W src,dst
BIS.B
src,dst
Operation
src .or. dst
→
dst
Description
The source operand and the destination operand are logically ORed. 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
Bits 15 and 13 of R5 (16-bit data) are set to one. R5.19:16 = 0
BIS
#A000h,R5
; Set R5 bits
Example
A table word pointed to by R5 (20-bit address) is used to set bits in R7.
R7.19:16 = 0
BIS.W @R5,R7
; Set bits in R7
Example
A table byte pointed to by R5 (20-bit address) is used to set bits in Port1. R5 is
incremented by 1 afterwards.
BIS.B
@R5+,&P1OUT
; Set I/O port P1 bits. R5 + 1
Содержание MSP430x4xx Family
Страница 1: ...MSP430x4xx Family 2007 Mixed Signal Products User s Guide SLAU056G ...
Страница 2: ......
Страница 6: ...vi ...
Страница 114: ...3 76 RISC 16 Bit CPU ...
Страница 304: ...5 20 FLL Clock Module ...
Страница 340: ...7 8 Supply Voltage Supervisor ...
Страница 348: ...8 8 16 Bit Hardware Multiplier ...
Страница 372: ...9 24 32 Bit Hardware Multiplier ...
Страница 400: ...10 28 DMA Controller ...
Страница 428: ...13 10 Basic Timer1 ...
Страница 466: ...15 24 Timer_A ...
Страница 522: ...17 30 USART Peripheral Interface UART Mode ...
Страница 544: ...18 22 USART Peripheral Interface SPI Mode ...
Страница 672: ...23 12 Comparator_A ...
Страница 692: ...24 20 LCD Controller ...
Страница 746: ...26 28 ADC12 ...