INSTRUCTION DESCRIPTIONS

I

 

 

Immediate Short Data Move

Example:

:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ABS B #$18,R1

 

;take absolute value of B, #$18R1

 

 

 

:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Before Execution

 

 

 

 

 

After Execution

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

$0018

 

 

R1

 

 

 

 

 

 

 

 

R1

 

 

 

$0000

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I

Explanation of Example: Prior to execution, the 16-bit address register R1 contains the value $0000. The execution of the parallel move portion of the instruction, #$18,R1, moves the 8-bit immediate short operand into the eight LS bits of the R1 register and zeros the remaining eight MS bits of that register. The 8-bit value is interpreted as an unsigned integer since its destination is the R1 address register.

MOTOROLA

INSTRUCTION SET DETAILS

A - 165

Page 434
Image 434
Motorola DSP56000, 24-Bit Digital Signal Processor manual ABS B #$18,R1 Take absolute value of B, #$18R1