beautypg.com

Jmpd, Jump using a delay slot (agu), Status and conditions changed by instruction – Freescale Semiconductor StarCore SC140 User Manual

Page 525: Example, Operation assembler syntax

background image

JMPD

SC140 DSP Core Reference Manual

A-211

JMPD

Jump Using a Delay Slot (AGU)

JMPD

Description

Status and Conditions that Affect Instruction

None.

Status and Conditions Changed by Instruction

None.

Example

jmpd lbl

Operation

Assembler Syntax

label

→ PC

JMPD label {0

≤ label < 2

32

,W}

Rn

→ PC

JMPD Rn

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.

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.