TRAP

Status and Conditions Changed by Instruction

Register Address

Bit Name

Description

SR[18]

EXP

Set

SR[0]

C

Cleared

SR[1]

T

Cleared

SR[5:4]

S[1:0]

Cleared

SR[31]

SLF

Cleared

SR[30:27]

LF[3:0]

Cleared

SR[23:21]

I[2:0]

Set interrupt priority level to 111.

Example 1

trap

Register/Memory Address

ESP

VBA

($8034)

($8030)

PC

SR

Before

$0000 8030

$8000 0000

$0000 0012

$00E0 0000

After

$0000 8038

$00E0 0000

$0000 0014

$8000 0000

$00E4 0000

Instruction Formats and Opcodes

Instruction

Words

Cycles

Type

TRAP

1

5

4

Opcode

15

 

 

 

 

 

 

8

7

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

0

0

1

1

1

1

0

0

1

1

1

1

1

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SC140 DSP Core Reference Manual

A-413

Page 727
Image 727
Freescale Semiconductor SC140 specifications Status and Conditions Changed by Instruction, Trap