DSP Core Instruction Set

Table A-12. AGU Bit-Mask Instructions (BMU)

Instruction

Description

 

 

 

 

AND

Logical AND on a 16-bit operand

 

 

BMCHG

Bit-mask change a 16-bit operand

 

 

BMCHG.W

Bit-mask change a 16-bit operand in memory

 

 

BMCLR

Bit-mask clear a 16-bit operand

 

 

BMCLR.W

Bit-mask clear a 16-bit operand in memory

 

 

BMSET

Bit-mask set a 16-bit operand

 

 

BMSET.W

Bit-mask set a 16-bit operand in memory

 

 

BMTSET

Bit mask test and set a 16-bit operand

 

 

BMTSET.W

Bit mask test and set a 16-bit operand in memory

 

 

BMTSTC

Bit mask test if clear

 

Sets the T-bit, if every bit position that has the value 1 in the mask is 0 in an operand.

 

 

BMTSTC.W

Bit mask test if clear in memory

 

Sets the T-bit, if every bit position that has the value 1 in the mask is 0 in an operand.

 

 

BMTSTS

Bit mask test if set

 

Sets the T-bit, if every bit position that has the value 1 in the mask is 1 in an operand.

 

 

BMTSTS.W

Bit mask test if set in memory

 

Sets the T-bit, if every bit position that has the value 1 in the mask is 1 in an operand.

 

 

EOR

Logical Exclusive OR on a 16-bit operand

 

 

NOT

Binary inversion of a 16-bit operand

 

 

OR

Logical OR on a 16-bit operand

 

 

Table A-13. AGU Non-Loop Change-of-Flow Instructions

Instruction

Description

 

 

 

 

BF

Branch if false

BFD

Branch if false (delayed)

 

 

BRA

Branch

 

 

BRAD

Branch (delayed)

 

 

BSR

Branch to subroutine

 

 

BSRD

Branch to subroutine (delayed)

 

 

BT

Branch if true

 

 

BTD

Branch if true (delayed)

 

 

JF

Jump if false

 

 

JFD

Jump if false (delayed)

 

 

JMP

Jump

 

 

JMPD

Jump (delayed)

 

 

JSR

Jump to subroutine

 

 

JSRD

Jump to subroutine (delayed)

 

 

JT

Jump if true

 

 

JTD

Jump if true (delayed)

 

 

RTE

Return from exception

 

 

SC140 DSP Core Reference Manual

A-17

Page 331
Image 331
Freescale Semiconductor SC140 specifications Table A-12. AGU Bit-Mask Instructions BMU