Freescale Semiconductor SC140 Jump Using a Delay Slot AGU, Example jmpd lbl, Jmpd label

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 525
Image 525

JMPD

JMPD

Jump Using a Delay Slot (AGU)

JMPD

Operation

Assembler Syntax

label → PC

JMPD

label {0 label < 232,W}

Rn → PC

JMPD

Rn

Description

JMPD label

Jumps to an absolute memory destination address specified by a label after executing the execution set in the delay slot. The assembler and the linker calculate the destination address from the label. The destination address cannot be in the middle of an execution set.

JMPD Rn

Jumps to a memory address specified by an address register (Rn) after executing the execution set in the delay slot. The value in Rn must be word-aligned.

Status and Conditions that Affect Instruction

None.

Status and Conditions Changed by Instruction

None.

Example jmpd lbl

Instruction

Comment

move.w #$35,d0

Places $35 in d0.

jmpd lbl move.w #$29,d1

Jump to lbl, move.w executed.

inc d1

Increment executed in the delay slot, d1 = $2A.

move.w #$20,d3

Skipped over.

- - - -

Skipped over.

- - - -

Skipped over.

- - - -

Skipped over.

lbl move.w #$16,d4

Execution continues here at lbl.

SC140 DSP Core Reference Manual

A-211

Page 525
Image 525
Freescale Semiconductor SC140 specifications Jump Using a Delay Slot AGU, Example jmpd lbl, Jmpd label, Jmpd Rn