
Instruction Set Overview
B-14
BIS[.W] Set bits in destination
BIS.B Set bits in destination
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 The six LSBs of the RAM word TOM are set.
BIS #003Fh,TOM; set the six LSBs in RAM location TOM
Example Start an A/D- conversion
ASOC .equ 1 ; Start of conversion bit
ACTL .equ 114h ; ADC control register
BIS #ASOC,&ACTL ; Start A/D-conversion
Example The three MSBs of RAM byte TOM are set.
BIS.B #0E0h,TOM ; set the 3 MSBs in RAM location TOM
Example Port pins P0 and P1 are set to high.
P0OUT .equ 011h
P0 .equ 01h
P1 .equ 02h
BIS.B #P0+P1,&P0OUT
Comentarios a estos manuales