Freescale-semiconductor StarCore SC140 Instrukcja Użytkownika Strona 410

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 760
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 409
A-96 SC140 DSP Core Reference Manual
BMTSTS.W
BMTSTS.W Bit-Masked Test a BMTSTS.W
16-Bit Operand in Memory (BMU)
Description
These operations use an unsigned 16-bit immediate data mask to determine if all selected bits in an
operand are set. If all the selected bits are set, the T bit is set; if not, the T bit is cleared. The absolute
addresses, offsets, and address register values must be word-aligned.
Operation Assembler Syntax
if (#u16 & ~(SP–u5) = $0000),
then 1 T,
else 0 T
BMTSTS.W #u16,(SP–u5){0 u16 < 2
16
}
{0 u5 < 64,W}
if (#u16 & ~(SP+s16) = $0000), then 1 T,
else 0 T
BMTSTS.W #u16,(SP+s16){0 u16 < 2
16
}
{–2
15
s16 < 2
15
,W}
if (#u16 & ~(Rn) = $0000), then 1 T, else 0 T
BMTSTS.W #u16,(Rn){0 u16 < 2
16
}
if (#u16 & ~(a16) = $0000), then 1 T, else 0 T
BMTSTS.W #u16,(a16){0 u16 < 2
16
}
{0 a16 < 2
16
,W}
BMTSTS.W #u16,(SP–u5)
Tests selected bits in the contents of a memory address pointed to by the active stack pointer (SP) with an
unsigned 5-bit offset.
BMTSTS.W #u16,(SP+s16)
Tests selected bits in the contents of a memory address pointed to by the active stack pointer (SP) with a
16-bit signed offset.
BMTSTS.W #u16,(Rn)
Tests selected bits in the contents of a memory address pointed to by an address register (Rn).
BMTSTS.W #u16,(a16)
Tests selected bits in the contents of a memory address pointed to by an absolute 16-bit address.
Przeglądanie stron 409
1 2 ... 405 406 407 408 409 410 411 412 413 414 415 ... 759 760

Komentarze do niniejszej Instrukcji

Brak uwag