Freescale-semiconductor StarCore SC140 Uživatelský manuál Strana 394

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 760
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 393
A-80 SC140 DSP Core Reference Manual
BMSET
BMSET Bit-Masked Set a 16-Bit Operand (BMU) BMSET
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.
Status and Conditions that Affect Instruction
Status and Conditions Changed by Instruction
Example
Operation Assembler Syntax
1 C1.H
i
(i denotes bits=1 in #u16)
BMSET #u16,C1.H {0 < u16 < 2
16
}
1
C1.L
i
(selected bits)
BMSET #u16,C1.L {0 < u16 < 2
16
}
1
DR.H
i
(selected bits)
BMSET #u16,DR.H {0 < u16 < 2
16
}
1
DR.L
i
(selected bits)
BMSET #u16,DR.L {0 < u16 < 2
16
}
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).
Register Address Bit Name Description
SR[18] EXP Determines execution working mode for instructions that have these
registers as an operand.
Register Address Bit Name Description
Ln L Clears the Ln bit in the destination register.
Zobrazit stránku 393
1 2 ... 389 390 391 392 393 394 395 396 397 398 399 ... 759 760

Komentáře k této Příručce

Žádné komentáře