BMCHG
SC140 DSP Core Reference Manual
A-69
BMCHG
Bit-Masked Change a
BMCHG
16-Bit Operand (BMU)
Description
These operations use an unsigned 16-bit immediate data mask to invert 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 inverted. Bits that are not selected as well as bits in the other
part of the register are unaffected. These operations read from a register, modify the retrieved
value, and write the new value back to that register. The operation is equivalent to the
exclusive-or function.
Note:
Special care must taken when using this instruction to clear bits on the EMR register due to this
register’s special functionality. See Chapter 3 for a description of this behavior.
Status and Conditions that Affect Instruction
Operation
Assembler Syntax
~C1.H
i
→
C1.H
i
(i denotes bits=1 in #u16)
BMCHG #u16,C1.H {0
≤
u16 < 2
16
}
~C1.L
i
→
C1.L
i
BMCHG #u16,C1.L {0
≤
u16 < 2
16
}
~DR.H
i
→
DR.H
i
BMCHG #u16,DR.H {0
≤
u16 < 2
16
}
~DR.L
i
→
DR.L
i
BMCHG #u16,DR.L {0
≤
u16 < 2
16
}
BMCHG
#u16,C1.H
Inverts selected bits in the contents of the HP of a control register (C1).
BMCHG
#u16,C1.L
Inverts selected bits in the contents of the LP of a control register (C1).
BMCHG
#u16,DR.H
Inverts selected bits in the contents of the HP of a data or address register (DR).
BMCHG
#u16,DR.L
Inverts selected bits in the contents of the LP of a data or address register (DR).
Register Address
Bit Name
Description
SR[18]
EXP
Determines execution working mode for instructions that have these
registers as an operand.
Summary of Contents for SC140 DSP Core
Page 12: ...xii SC140 DSP Core Reference Manual ...
Page 18: ...xviii SC140 DSP Core Reference Manual ...
Page 32: ...1 6 SC140 DSP Core Reference Manual Core Architecture Features ...
Page 180: ...4 70 SC140 DSP Core Reference Manual Trace Unit Registers ...
Page 250: ...6 70 SC140 DSP Core Reference Manual Programming Rules ...
Page 314: ...7 64 SC140 DSP Core Reference Manual NOP Definition ...
Page 463: ...DI SC140 DSP Core Reference Manual A 149 15 8 7 0 DI 1 1 4 1 0 0 1 1 1 1 1 0 1 1 1 1 1 0 1 ...
Page 478: ...A 164 SC140 DSP Core Reference Manual EI ...
Page 618: ...A 304 SC140 DSP Core Reference Manual MOVES 4F s15 sssssssssssssss Signed 15 bit offset ...
Page 638: ...A 324 SC140 DSP Core Reference Manual MPYR ...
Page 746: ...A 432 SC140 DSP Core Reference Manual ZXTA x ...
Page 758: ...I 10 Index ...
Page 759: ...SC140 DSP Core Reference Manual i ...
Page 760: ......