![Freescale Semiconductor SC140 DSP Core Reference Manual Download Page 309](http://html1.mh-extra.com/html/freescale-semiconductor/sc140-dsp-core/sc140-dsp-core_reference-manual_2330564309.webp)
LPMARK Rules
SC140 DSP Core Reference Manual
7-59
LPMARK Rule L.C.11 + L.C.12
A delayed COF instruction is not allowed at LPA-1 or LPB-1 of a loop.
Example 7-102. Delay Slot at LPA or LPB of a Loop
jmpd_dest
;not allowed
nop
{lpmarkb set}
nop
nop
jmpd _dest
;not allowed
nop
{lpmarka set}
7.8.3.6 General Looping Rules
LPMARK Rule L.G.3 + L.G.4
At least one VLES is required between a MOVE-like instruction that reads the SR register and LPA or
LPB of a loop.
Example 7-103. SR Read to LPA or LPB of a Loop
dosetup1 label1
doen1 #5
label1
inc d1
move.l sr,d0
;not allowed
inc d2
{lpmarkb set}
move.l #mem_l1,r1
move.l #mem_l2,r0
doensh0 #$10
push sr
;not allowed
inc d0
{lpmarka set}
7.8.3.7 Rule Detection Across Exception Boundaries
LPMARK Rule SR.6
LPA or LPB cannot be the first two VLES of an exception service routine.
7.8.4 LPMARK Programming Guidelines
The rules in this section cannot be detected by the simulator from its execution trace. The following rules
must be detected by the programmer, and can be avoided by good programming practices.
Summary of Contents for SC140 DSP Core
Page 12: ...xii SC140 DSP Core Reference Manual ...
Page 18: ...xviii SC140 DSP Core Reference Manual ...
Page 32: ...1 6 SC140 DSP Core Reference Manual Core Architecture Features ...
Page 180: ...4 70 SC140 DSP Core Reference Manual Trace Unit Registers ...
Page 250: ...6 70 SC140 DSP Core Reference Manual Programming Rules ...
Page 314: ...7 64 SC140 DSP Core Reference Manual NOP Definition ...
Page 463: ...DI SC140 DSP Core Reference Manual A 149 15 8 7 0 DI 1 1 4 1 0 0 1 1 1 1 1 0 1 1 1 1 1 0 1 ...
Page 478: ...A 164 SC140 DSP Core Reference Manual EI ...
Page 618: ...A 304 SC140 DSP Core Reference Manual MOVES 4F s15 sssssssssssssss Signed 15 bit offset ...
Page 638: ...A 324 SC140 DSP Core Reference Manual MPYR ...
Page 746: ...A 432 SC140 DSP Core Reference Manual ZXTA x ...
Page 758: ...I 10 Index ...
Page 759: ...SC140 DSP Core Reference Manual i ...
Page 760: ......