Freescale Semiconductor SC140 specifications Add d1,d0,d2, Register/Memory Address

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 339
Image 339

ADD

Register/Memory Address

Before

L2:D2

EMR

After

$0:$00 0000 0007

$0000 0000

Example 2

add d1,d0,d2

Register/Memory Address

SR

D1

D0

L2:D2

EMR

Before

$00E0 0000

$00 72E3 8F2A

$00 7216 EE3C

After

$1:$00 E4FA 7D66

$0000 0000

The L2 bit is set from the 32-bit overflow. Note that the extension bits are in use in the sum, bit 32 =0, bit 31 = 1.

Instruction Formats and Opcodes

Instruction

Words

Cycles

Type

ADD #u5,Dn

1

1

1

ADD Da,Db,Dn

1

1

1

ADD Da,Da,Dn

1

1

1

Note: ** indicates serial grouping encoding.

Opcode

15

 

 

 

 

8

7

0

 

 

 

 

 

 

 

 

0

* 1

1

1

0

F F

F 1 0 i

i i i i

 

 

 

 

 

 

 

 

15

 

 

 

 

8

7

0

 

 

 

 

 

 

 

0

* 1

0

1

1

F F

F 1 0 J J J J J

 

 

 

 

 

 

 

 

15

 

 

 

 

8

7

0

 

 

 

 

 

 

 

0

* 1

0

0

0

F F

F 1 1 0 0 0 j j

 

 

 

 

 

 

 

 

SC140 DSP Core Reference Manual

A-25

Page 339
Image 339
Freescale Semiconductor SC140 specifications Add d1,d0,d2, Register/Memory Address