Individual Instruction Descriptions
4-96
4.14.15
ENDLOOP
End Loop
Syntax
[label]
name
#
Clock,
clk
Word,
w
With RPT,
clk
Class
ENDLOOP
[
n]
1
1
N/R
9d
Execution
If (R4
≥
0)
decrement R4 by
n (1 or 2)
PC
⇐
first address after BEGLOOP
else
NOP
PC
⇐
PC + 1
Flags Affected
None
Opcode
Instructions
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
ENDLOOP
n
1
1
1
1
1
1
1
1
0
0
0
0
1
0
0
0
n
Description
This instruction marks the end of a loop defined by BEGLOOP. If register R4
is not negative, R4 is decremented by
n and the loop is executed again
beginning with the first instruction after the BEGLOOP. If R4 is negative, a
NOP instruction is executed and program exits the loop. Interrupts (queued by
BEGLOOP) are processed according to their priority. This instruction results
in an overhead of one instruction cycle per loop cycle compared to two
instruction cycle if branching is used. If ENDLOOP is used without any
argument, it assumes
n =1.
See Also
BEGLOOP, INTE
Example 4.14.15.1
See Example 4.14.7.1 in BEGLOOP.
Содержание MSP50C614
Страница 1: ...MSP50C614 Mixed Signal Processor User s Guide SPSU014 January 2000 Printed on Recycled Paper ...
Страница 6: ...vi ...
Страница 92: ...3 22 ...
Страница 300: ...Instruction Set Summay 4 208 Assembly Language Instructions ...
Страница 314: ...Software Emulator 5 14 Figure 5 13 Project Menu Figure 5 14 Project Open Dialog ...
Страница 325: ...Software Emulator 5 25 Code Development Tools Figure 5 25 EPROM Programming Dialog ...
Страница 331: ...Software Emulator 5 31 Code Development Tools Figure 5 31 Context Sensitive Help System ...
Страница 368: ...5 68 ...
Страница 394: ...7 12 ...
Страница 400: ...Architecture A 6 Figure A 3 MSP50C605 100 Pin PJM Package MSP50C605 100 PIN PJM PLASTIC PACKAGE 1 80 81 100 30 31 50 51 ...
Страница 402: ...A 8 ...
Страница 412: ...Packaging B 10 ...
Страница 414: ...C 2 C 1 MSP50C605 Data Sheet This appendix contains the data sheet for the MSP50C605 mixed signal pro cessor ...