NOT.W

Example

not.w (r1)

Register/Memory Address

R1

($50)

Before

$0000 0050

$FFFB

After

$0004

Instruction Formats and Opcodes

Instruction

Words

Cycles

Type

NOT.W (Rn)

2

2

3

NOT.W (SP–u5)

2

3

3

NOT.W (SP+s16)

3

3

3

Opcode

15

 

 

 

 

 

 

8

7

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

1

0

0

1

0

1

1

1

0

1

R R R

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

0

1

1

1

1

1

1

1

1

1

1

1

1

1

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15

 

 

 

 

 

 

8

7

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

0

0

0

1

0

1

1

1

A A A A A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

0

1

1

1

1

1

1

1

1

1

1

1

1

1

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15

 

 

 

 

 

 

8

7

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

0

0

1

1

1

0

1

0

A A A 1 1 0

1

1

 

 

 

 

 

0

0

1

A A A A A

A A A A A A A A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

0

1

1

1

1

1

1

1

1

1

1

1

1

1

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

NOT.W (a16)

3

2

3

15

 

 

 

 

 

 

8

7

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

1

1

1

0

1

0

A A A 1

1

0

0

1

 

 

 

 

 

0

0

1

A A A A A

A A A A A A A A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

0

1

1

1

1

1

1

1

1

1

1

1

1

1

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction Fields

Rn

RRR

 

 

Address Register

 

 

 

 

000

R0

010

R2

100

R4

110

R6

 

 

 

 

 

 

 

 

 

 

001

R1

011

R3

101

R5

111

R7

 

 

 

 

 

 

 

 

Note:

This instruction

can specify R8-R15 as operands by using a high register prefix.

 

a16

AAAAAAAAAAAAAAAA 16-bit unsigned absolute address

 

 

u5

 

AAAAA0

Unsigned 5-bit address offset

 

 

s16

AAAAAAAAAAAAAAAA Signed 16-bit SP address offset

 

 

SC140 DSP Core Reference Manual

A-339

Page 653
Image 653
Freescale Semiconductor SC140 specifications Example, Not.w r1