Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
load.asm
Package: DSP-C6000-DM642DEMO.rar [view]
Upload User: dahaojd
Upload Date: 2008-01-29
Package Size: 14357k
Code Size: 1k
Category:
DSP program
Development Platform:
C/C++
- ; ; Copyright 2003 by Texas Instruments Incorporated. ; All rights reserved. Property of Texas Instruments Incorporated. ; Restricted rights to use, duplicate or disclose this code are ; granted through contract. ; ; ; "@(#) DSP/BIOS 4.90.270 06-11-03 (barracuda-m10)" ;
- ; ======== load.asm ========
- ;
- ; C-callable interface to assembly language utility functions for the
- ; volume example.
- .global _load
- .text
- N .set 1000
- ;
- ; ======== _load ========
- ; This function simulates a load on the DSP by executing N * loopCount
- ; instructions, where loopCount is the input parameter to load().
- ;
- ; void _load(int loopCount)
- ;
- ; The loop is using 8 instructions. One instruction for sub, nop and
- ; b, plus nop 5. The extra nop added after sub is to make the number
- ; of instructions in the loop a power of 2.
- ;
- _load:
- mv a4, b0 ; use b0 as loop counter
- [!b0] b lend
- mvk N,b1
- mpy b1,b0,b0
- nop
- shru b0,3,b0 ; (loop counter)= (# loops)/8
- loop:
- sub b0,1,b0
- nop
- [b0] b loop
- nop 5
- lend: b b3
- nop 5 ; return
- .end