Freescale Semiconductor SC140 specifications Bmtsts.W, BMTSTS.W #u16,SP-u5, BMTSTS.W #u16,SP+s16

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 410
Image 410

BMTSTS.W

BMTSTS.W

Bit-Masked Test a

BMTSTS.W

16-Bit Operand in Memory (BMU)

Operation

 

Assembler Syntax

if (#u16 & ~(SP–u5) = $0000), then 1→ T,

BMTSTS.W #u16,(SP–u5){0 u16 < 216}

else 0 → T

 

{0 u5 < 64,W}

 

if (#u16 & ~(SP+s16) = $0000), then 1→ T,

BMTSTS.W #u16,(SP+s16){0 u16 < 216}

else 0 → T

 

{–215s16 < 215,W}

if (#u16 & ~(Rn) = $0000), then 1→ T, else 0 → T

BMTSTS.W #u16,(Rn){0 u16 < 216}

if (#u16 & ~(a16) = $0000), then 1→ T, else 0 → T

BMTSTS.W #u16,(a16){0 u16 < 216}

 

 

{0 a16 < 216,W}

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.

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.

A-96

SC140 DSP Core Reference Manual

Page 410
Image 410
Freescale Semiconductor SC140 Bmtsts.W, BMTSTS.W #u16,SP-u5, BMTSTS.W #u16,SP+s16, BMTSTS.W #u16,Rn, BMTSTS.W #u16,a16