Freescale Semiconductor SC140 #$a70e,d1.h, #u16 DR.L → DR.L, #u16 DR.H → DR.H, #u16,DR.L

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 357
Image 357

 

 

 

 

AND

 

 

 

 

AND

Bitwise AND with 16-Bit Immediate (BMU)

AND

Operation

 

Assembler Syntax

 

#u16 • DR.L → DR.L

AND #u16,DR.L

 

#u16 • DR.H → DR.H

AND #u16,DR.H

 

Description

AND #u16,DR.L

Performs a bitwise AND on an immediate unsigned word and the contents of the LP of a source data or address register (DR). Stores the result in the LP of the data or address register (DR). The HP of the register is unaffected.

Note: This instruction is assembler-mapped to BMCLR #~u16,DR.L where #~u16 is the bitwise complement of #u16.

AND #u16,DR.H

Performs a bitwise AND on an immediate unsigned word and the contents of the HP of a data or address register (DR). Stores the result in the HP of the data or address register (DR). The LP of the register is unaffected.

Note: This instruction is assembler-mapped to BMCLR #~u16,DR.H.

Status and Conditions that Affect Instruction

None.

Status and Conditions Changed by Instruction

Register Address

Bit Name

Description

Ln

L

Clears the Ln bit in the destination register.

Example

and #$a70e,d1.h

Register/Memory Address

immediate

D1.H

In binary, $A70E $57AF

and = $070E

Before

$A70E

$57AF

1010011100001110

0101011110101111

0000011100001110

After

$070E

SC140 DSP Core Reference Manual

A-43

Page 357
Image 357
Freescale Semiconductor SC140 specifications #$a70e,d1.h, #u16 DR.L → DR.L, #u16 DR.H → DR.H, #u16,DR.L, #u16,DR.H