INSTRUCTION DESCRIPTIONS

 

OR

Logical Inclusive OR

OR

Operation:

 

Assembler Syntax:

 

S+D[47:24] D[47:24] (parallel move)

OR

S,D (parallel move)

where + denotes the logical inclusive OR operator

Description: Logically inclusive OR the source operand S with bits 47–24 of the destina- tion operand D and store the result in bits 47–24 of the destination accumulator. This instruction is a 24-bit operation. The remaining bits of the destination operand D are not affected.

Example:

:

 

 

 

 

OR Y1,B1

 

BA,L:$1234

:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Before Execution

 

 

 

 

 

 

 

 

 

 

 

 

 

Y1

 

 

 

 

$FF0000

 

 

 

 

 

 

 

;save A1,B1, OR Y1 with B

 

 

 

After Execution

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y1

 

 

 

 

 

 

 

$FF0000

 

 

 

 

 

 

 

B

$00:123456:789ABC

B

$00:FF3456:789ABC

Explanation of Example: Prior to execution, the 24-bit Y1 register contains the value $FF0000, and the 56-bit B accumulator contains the value $00:123456:789ABC. The OR Y1,B instruction logically ORs the 24-bit value in the Y1 register with bits 47–24 of the B accumulator (B1) and stores the result in the B accumulator with bits 55–48 and 23–0 unchanged.

Condition Codes:

15

14

 

13

12

11

10

9

8

7

6

 

5

4

3

2

1

0

LF

DM

T

**

 

S1

S0

 

I1

I0

S

L

E

U

 

N

Z

 

V

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MR

 

 

 

 

 

 

 

 

 

 

 

CCR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

S — Computed according to the definition in A.5 CONDITION CODE COMPUTATION L — Set if data limiting has occurred during parallel move

N — Set if bit 47 of A or B result is set

Z — Set if bits 47-24 of A or B result are zero

V — Always cleared

A - 244

INSTRUCTION SET DETAILS

MOTOROLA

Page 513
Image 513
Motorola 24-Bit Digital Signal Processor, DSP56000 manual Logical Inclusive or Operation Assembler Syntax