Freescale Semiconductor SC140 specifications Bmchg.w #$661f,$800c, BMCHG.W #u16,SP-u5

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 387
Image 387

BMCHG.W

Example

bmchg.w #$661f,<$800c

Register/Memory Address

immediate

$800C

In binary, $661F $ACE1 $CAFE

Before

$661F

$ACE1

0110011000011111

1010110011100001

1100101011111110

After

$CAFE

Instruction Formats and Opcodes

Instruction

Words

Cycles

Type

BMCHG.W #u16,(SP–u5)

2

3

3

Opcode

15

 

 

8

7

0

 

 

 

 

 

 

0

0

0

0 0 0 1 0

i

i i A A A A A

 

 

 

 

 

 

 

1

0

1

i i i i i

i

i i

i i i i i

 

 

 

 

 

 

 

 

 

 

 

15

 

 

 

 

 

 

8

7

 

 

 

 

 

 

0

BMCHG.W #u16,(SP+s16)

3

3

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

1

1

1

0

1

0

A

A

A

i

i

0

1

1

 

 

 

 

0

0

1

A A A A A

A A A A A A A A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

0

i

i

i

i

i

i

i

i

i

i

i

i

i

i

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15

 

 

 

 

 

 

8

7

 

 

 

 

 

 

0

BMCHG.W #u16,(Rn)

2

2

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

1

0

0

1

0

i

i

i

0

1

R

R

R

 

 

 

 

1

0

1

i

i

i

i

i

i

i

i

i

i

i

i

i

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15

 

 

 

 

 

 

8

7

 

 

 

 

 

 

0

BMCHG.W #u16,(a16)

3

2

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

1

1

1

0

1

0

A

A

A

i

i

0

0

1

 

 

 

 

0

0

1

A A A A A

A A A A A A A A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

0

i

i

i

i

i

i

i

i

i

i

i

i

i

i

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

 

 

#u16

 

iiiiiiiiiiiiiiii

16-bit unsigned immediate data

 

 

u5

 

AAAAA0

5-bit unsigned SP address offset

 

 

SC140 DSP Core Reference Manual

A-73

Page 387
Image 387
Freescale Semiconductor SC140 specifications Bmchg.w #$661f,$800c, BMCHG.W #u16,SP-u5