Freescale Semiconductor SC140 Rule L.C.5, Example 7-68. Bc/Jc at LA-3 of a Long Loop

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 287
Image 287

Static Programming Rules

Rule L.C.5

A Bc or Jc instruction is not allowed at LA-3 of a long loop.

Example 7-68. Bc/Jc at LA-3 of a Long Loop

dosetup1 label7

 

move.w #0,d1

 

doen1 #5

 

loopstart1

 

label7 inc d1

;LA-3, not allowed

bf label6

inc d2

 

inc d3

 

inc d4

 

loopend1

 

SC140 DSP Core Reference Manual

7-37

Page 287
Image 287
Freescale Semiconductor SC140 specifications Rule L.C.5, Bc or Jc instruction is not allowed at LA-3 of a long loop