📄 load.lst
字号:
TMS320C6x COFF Assembler Version 4.00 Fri Sep 15 10:28:43 2000
Copyright (c) 1996-2000 Texas Instruments Incorporated
load.s62 PAGE 1
1 ; THIS PROGRAM IS PROVIDED "AS IS". TI MAKES NO WARRANTIES OR
2 ; REPRESENTATIONS, EITHER EXPRESS, IMPLIED OR STATUTORY,
3 ; INCLUDING ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
4 ; FOR A PARTICULAR PURPOSE, LACK OF VIRUSES, ACCURACY OR
5 ; COMPLETENESS OF RESPONSES, RESULTS AND LACK OF NEGLIGENCE.
6 ; TI DISCLAIMS ANY WARRANTY OF TITLE, QUIET ENJOYMENT, QUIET
7 ; POSSESSION, AND NON-INFRINGEMENT OF ANY THIRD PARTY
8 ; INTELLECTUAL PROPERTY RIGHTS WITH REGARD TO THE PROGRAM OR
9 ; YOUR USE OF THE PROGRAM.
10 ;
11 ; IN NO EVENT SHALL TI BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
12 ; CONSEQUENTIAL OR INDIRECT DAMAGES, HOWEVER CAUSED, ON ANY
13 ; THEORY OF LIABILITY AND WHETHER OR NOT TI HAS BEEN ADVISED
14 ; OF THE POSSIBILITY OF SUCH DAMAGES, ARISING IN ANY WAY OUT
15 ; OF THIS AGREEMENT, THE PROGRAM, OR YOUR USE OF THE PROGRAM.
16 ; EXCLUDED DAMAGES INCLUDE, BUT ARE NOT LIMITED TO, COST OF
17 ; REMOVAL OR REINSTALLATION, COMPUTER TIME, LABOR COSTS, LOSS
18 ; OF GOODWILL, LOSS OF PROFITS, LOSS OF SAVINGS, OR LOSS OF
19 ; USE OR INTERRUPTION OF BUSINESS. IN NO EVENT WILL TI'S
20 ; AGGREGATE LIABILITY UNDER THIS AGREEMENT OR ARISING OUT OF
21 ; YOUR USE OF THE PROGRAM EXCEED FIVE HUNDRED DOLLARS
22 ; (U.S.$500).
23 ;
24 ; Unless otherwise stated, the Program written and copyrighted
25 ; by Texas Instruments is distributed as "freeware". You may,
26 ; only under TI's copyright in the Program, use and modify the
27 ; Program without any charge or restriction. You may
28 ; distribute to third parties, provided that you transfer a
29 ; copy of this license to the third party and the third party
30 ; agrees to these terms by its first use of the Program. You
31 ; must reproduce the copyright notice and any other legend of
32 ; ownership on each copy or partial copy, of the Program.
33 ;
34 ; You acknowledge and agree that the Program contains
35 ; copyrighted material, trade secrets and other TI proprietary
36 ; information and is protected by copyright laws,
37 ; international copyright treaties, and trade secret laws, as
38 ; well as other intellectual property laws. To protect TI's
39 ; rights in the Program, you agree not to decompile, reverse
40 ; engineer, disassemble or otherwise translate any object code
41 ; versions of the Program to a human-readable form. You agree
42 ; that in no event will you alter, remove or destroy any
43 ; copyright notice included in the Program. TI reserves all
44 ; rights not specifically granted under this license. Except
45 ; as specifically provided herein, nothing in this agreement
46 ; shall be construed as conferring by implication, estoppel,
47 ; or otherwise, upon you, any license or other right under any
48 ; TI patents, copyrights or trade secrets.
49 ;
50 ; You may not use the Program in non-TI devices.
51 ;
52 ; ======== audio_ld.s62 ========
53 ;
54 ;
55 ; C-callable interface to assembly language utility functions for the
TMS320C6x COFF Assembler Version 4.00 Fri Sep 15 10:28:43 2000
Copyright (c) 1996-2000 Texas Instruments Incorporated
load.s62 PAGE 2
56 ; audio example.
57
58
59 .ref _doLoad
60
61 00000000 .text
62
63 000003E8 N .set 1000
64
65 ;
66 ; ======== _doLoad ========
67 ; This function simulates a load on the DSP by executing N * loopCount
68 ; instructions, where loopCount is the input parameter to doLoad().
69 ;
70 ; void doLoad(int loopCount)
71 ;
72 ; The loop is using 8 instructions. One instruction for sub, nop and
73 ; b, plus nop 5. The extra nop added after sub is to make the number
74 ; of instructions in the loop a power of 2.
75 ;
76 00000000 _doLoad:
77
78 00000000 001011A2 mv a4, b0 ; use b0 as loop counter
79 00000004 30000512 [!b0] b lend ; goto lend if b0 = 0
80 00000008 0081F42A mvk N,b1
81 0000000c 00002C82 mpy b1,b0,b0
82 00000010 00000000 nop
83 00000014 000069A2 shru b0,3,b0 ; (loop counter)= (# loops)/8
84
85 00000018 loop:
86 00000018 0003E1A2 sub b0,1,b0
87 0000001c 00000000 nop
88 00000020 2FFFFF12 [b0] b loop
89 00000024 00008000 nop 5
90
91 00000028 000C0362 lend: b b3
92 0000002c 00008000 nop 5 ; return
93
94 .end
No Errors, No Warnings
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -