Freescale Semiconductor SC140 Or #$0f0a,d0.l, #u16 DR.L → DR.L, #u16 DR.H → DR.H, Or #u16,DR.L

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 656
Image 656

OR

OR

Bitwise OR on a 16-Bit Operand (BMU)

Operation

Assembler Syntax

OR

#u16

⏐ DR.L → DR.L

OR

#u16,DR.L

{0

u16

<

216}

#u16

⏐ DR.H → DR.H

OR

#u16,DR.H

{0

u16

<

216}

Description

OR #u16,DR.L

Performs a bitwise inclusive OR of an immediate value with the LP of a data or address register (DR). It then stores the result in the LP of the destination data or address register (DR). The other register bits are not affected. This instruction is assembler-mapped to BMSET #u16,DR.L with the immediate value.

OR #u16,DR.H

Performs a bitwise inclusive OR of an immediate value with the HP of a data or address register (DR). It then stores the result in the HP of the destination data or address register (DR). The other register bits are not affected. This instruction is assembler-mapped to BMSET #u16,DR.H with the immediate value.

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 registers.

Example

or #$0f0a,d0.l

Register/Memory Address

Before

Immediate

 

$0F0A

D0

 

$1:$00 ACBD F065

0000 1111 0000 1010 or 1111 0000 0110 0101 1111 1111 0110 1111

After

$0:$00 ACBD FF6F

A-342

SC140 DSP Core Reference Manual

Page 656
Image 656
Freescale Semiconductor SC140 specifications Or #$0f0a,d0.l, #u16 DR.L → DR.L, #u16 DR.H → DR.H, Or #u16,DR.L, Or #u16,DR.H