7-52
SC140 DSP Core Reference Manual
LPMARK Rules
7.8.2 Static Programming Rules
This section defines new SC140 LPMARK programming rules for correct LPMARKA and LPMARKB
instruction use in a VLES, when enabled by an assembler switch. When enabled, these rules apply in
addition to the other programming rules.
7.8.2.1 General Grouping Rules
LPMARK Rule G.G.1
The LPMARKA and LPMARKB instructions are not counted for this rule.
7.8.2.2 Prefix Grouping Rules
LPMARK Rule G.P.3
Multiple LPMARKA instructions cannot be grouped in a VLES. Multiple LPMARKB instructions cannot
be grouped in a VLES. This LPMARK rule applies to the whole VLES.
LPMARK Rule G.P.6
The LPMARKA and LPMARKB instructions are not counted for this rule.
LPMARK Rule G.P.7
IFc instructions do not affect the LPMARKA and LPMARKB instructions. The LPMARKA and
LPMARKB instructions always execute unconditionally, and can be placed anywhere in the assembly
source order.
7.8.3 Dynamic Programming Rules
The LPMARK rules in this section are alternate forms of SC140 programming rules detectable from the
prefix encoding. Source code that complies with the assembly notation rules is by definition compliant
with LPMARK rules. These LPMARK rules allow the simulator to detect dynamic programming rules that
are not detectable by the assembler.
7.8.3.1 LPMARK Notation
The LPMARK rules use the VLES address notation “LPA-2, LPA-1, and LPA” (relative to the VLES
having LPMARKA set) and “LPB, LPB+1 and LPB+2” (relative to the VLES having LPMARKB set).
The minus “-” notation adjusts the VLES address earlier in the object code order.
7.8.3.1.1 Active Loop
In a nested loop structure, more than one loop can be enabled at the same time. A loop is enabled when its
LFn bit in SR is set, where n is the loop index. The enabled loop with the highest index is defined as the
“active loop”. This definition is dynamic and follows the SC140 loop state machine. The SC140 loop
state machine and simulator determine the “active loop” from the LFn bits in SR when a VLES having an
LPMARK bit set is executed.
Содержание SC140 DSP Core
Страница 12: ...xii SC140 DSP Core Reference Manual ...
Страница 18: ...xviii SC140 DSP Core Reference Manual ...
Страница 32: ...1 6 SC140 DSP Core Reference Manual Core Architecture Features ...
Страница 180: ...4 70 SC140 DSP Core Reference Manual Trace Unit Registers ...
Страница 250: ...6 70 SC140 DSP Core Reference Manual Programming Rules ...
Страница 314: ...7 64 SC140 DSP Core Reference Manual NOP Definition ...
Страница 385: ...BMCHG W SC140 DSP Core Reference Manual A 71 u16 iiiiiiiiiiiiiiii 16 bit unsigned immediate data ...
Страница 388: ...A 74 SC140 DSP Core Reference Manual BMCHG W s16 AAAAAAAAAAAAAAAA 16 bit signed SP address offset ...
Страница 391: ...BMCLR SC140 DSP Core Reference Manual A 77 u16 iiiiiiiiiiiiiiii 16 bit unsigned immediate data ...
Страница 454: ...A 140 SC140 DSP Core Reference Manual DECA u5 iiiii 5 bit unsigned immediate data 1 set by the assembler ...
Страница 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 ...
Страница 478: ...A 164 SC140 DSP Core Reference Manual EI ...
Страница 592: ...A 278 SC140 DSP Core Reference Manual MOVE L a32 aaaaaaaaaaaaaaaaAAAAAAAAAAAAAAAA 32 bit absolute long address ...
Страница 618: ...A 304 SC140 DSP Core Reference Manual MOVES 4F s15 sssssssssssssss Signed 15 bit offset ...
Страница 638: ...A 324 SC140 DSP Core Reference Manual MPYR ...
Страница 660: ...A 346 SC140 DSP Core Reference Manual OR W s16 AAAAAAAAAAAAAAAA Signed 16 bit SP address offset ...
Страница 746: ...A 432 SC140 DSP Core Reference Manual ZXTA x ...
Страница 758: ...I 10 Index ...
Страница 759: ...SC140 DSP Core Reference Manual i ...
Страница 760: ......