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

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 704
Image 704

SUB

Register/Memory Address

Before

L2:D2

EMR

After

$0:$FF FFFF FFFD

$0000 0000

Example 2

sub d0,d1,d2

Register/Memory Address

D0

D1

SR

L2:D2

EMR

Before

$FF D000 0000

$00 2000 0000

$00E4 0020

After

$00E4 0021

$1:$00 5000 0000

$0000 0000

Scaling up is set in SR[5], so L2 bit is set from overflow from bit 30.

Instruction Formats and Opcodes

Instruction

Words

Cycles

Type

SUB #u5,Dn

1

1

1

SUB Da,Db,Dn

1

1

1

SUB Db,Da,Dn

1

1

1

SUB 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 1 i

i i i i

 

 

 

 

 

 

 

 

15

 

 

 

 

8

7

0

 

 

 

 

 

 

 

0

* 1

0

1

1

F F

F 0 0 J J J J J

 

 

 

 

 

 

 

 

15

 

 

 

 

8

7

0

 

 

 

 

 

 

 

0

* 1

0

1

1

F F

F 0 1 J J J J J

 

 

 

 

 

 

 

 

15

 

 

 

 

8

7

0

 

 

 

 

 

 

 

0

* 1

0

0

0

F F

F 1 1 0 0 1 j j

 

 

 

 

 

 

 

 

A-390

SC140 DSP Core Reference Manual

Page 704
Image 704
Freescale Semiconductor SC140 specifications Sub d0,d1,d2, Register/Memory Address