BMSET

BMSET Bit-Masked Set a 16-Bit Operand (BMU) BMSET

Operation

Assembler Syntax

 

 

 

1→ C1.Hi (i denotes bits=1 in #u16)

BMSET #u16,C1.H {0 <

u16 < 216}

1

→ C1.Li (selected bits)

BMSET #u16,C1.L {0 <

u16

< 216}

1

→ DR.Hi (selected bits)

BMSET

#u16,DR.H

{0

<

u16

<

216}

1

→ DR.Li (selected bits)

BMSET

#u16,DR.L

{0

<

u16

<

216}

Description

These operations use an unsigned 16-bit immediate data mask to set selected bits in the destination operand. For each bit i that is set (selected) in the mask, the bit i in the corresponding destination operand’s bit position is set. Bits that are not selected as well as the other part of the register are unaffected. These operations read from the register, modify the retrieved value, and write the new value back to that register.

BMSET #u16,C1.H

Sets selected bits in the HP contents of a control register (C1).

BMSET #u16,C1.L

Sets selected bits in the LP contents of a control register (C1).

BMSET #u16,DR.H

Sets selected bits in the HP contents of a data or address register (DR).

BMSET #u16,DR.L

Sets selected bits in the LP contents of a data or address register (DR).

Status and Conditions that Affect Instruction

Register Address

Bit Name

Description

SR[18]

EXP

Determines execution working mode for instructions that have these

 

 

registers as an operand.

Status and Conditions Changed by Instruction

Register Address

Bit Name

Description

Ln

L

Clears the Ln bit in the destination register.

Example

A-80

SC140 DSP Core Reference Manual

Page 394
Image 394
Freescale Semiconductor SC140 specifications Bmset #u16,C1.H, Bmset #u16,C1.L, Bmset #u16,DR.H, Bmset #u16,DR.L