INSTRUCTION DESCRIPTIONS

 

SWI

Software Interrupt

SWI

Operation:

 

Assembler Syntax:

 

 

Begin SWI exception processing

SWI

 

Description: Suspend normal instruction execution and begin SWI exception process- ing. The interrupt priority level (I1,I0) is set to 3 in the status register (SR) if a long inter- rupt service routine is used.

Restrictions:

An SWI instruction cannot be used in a fast interrupt routine.

An SWI instruction cannot be repeated using the REP instruction.

Example:

:

 

SWI

;begin SWI exception processing

:

Explanation of Example: The SWI instruction suspends normal instruction execution and initiates SWI exception processing.

A - 282

INSTRUCTION SET DETAILS

MOTOROLA

Page 551
Image 551
Motorola 24-Bit Digital Signal Processor Software Interrupt, Operation Assembler Syntax Begin SWI exception processing