文件名称:Ex3_1
-
所属分类:
- 标签属性:
- 上传时间:2013-08-22
-
文件大小:4.3kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
TMS320C54x具有丰富的程序控制与转移指令,利用这些指令可以执行分支转移、循环控制以及子程序操作。本实验要求编写一程序完成 的计算。这个求和运算可以通过一个循环操作指令BANZ来完成。BANZ的功能是当辅助寄存器的值不为0时转移到指定标号执行。
例如:
STM #4, AR2
loop: ADD *AR3+, A
BANZ loop, *AR2– ;当AR2不为零时转移到loop行执行。
假设AR3中存有x1到x5五个变量的地址,则上述简单的代码就完成了这五个数的求和。-TMS320C54x has a wealth of program control and transfer instructions, use these commands can be executed branches, loop control, and routine operations. This experiment requires the preparation of a program to complete calculations. This summation operation instruction through a cycle of operation to complete BANZ. BANZ function is when the auxiliary register value is not 0, the transfer to the specified label executive. For example: STM# 4, AR2 loop: ADD* AR3+, A BANZ loop,* AR2- AR2 is not zero when transferred to the loop line execution. Suppose there AR3 in five variables x1 to x5 address, the above simple code to complete the sum of these five numbers.
例如:
STM #4, AR2
loop: ADD *AR3+, A
BANZ loop, *AR2– ;当AR2不为零时转移到loop行执行。
假设AR3中存有x1到x5五个变量的地址,则上述简单的代码就完成了这五个数的求和。-TMS320C54x has a wealth of program control and transfer instructions, use these commands can be executed branches, loop control, and routine operations. This experiment requires the preparation of a program to complete calculations. This summation operation instruction through a cycle of operation to complete BANZ. BANZ function is when the auxiliary register value is not 0, the transfer to the specified label executive. For example: STM# 4, AR2 loop: ADD* AR3+, A BANZ loop,* AR2- AR2 is not zero when transferred to the loop line execution. Suppose there AR3 in five variables x1 to x5 address, the above simple code to complete the sum of these five numbers.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Ex3_1
Ex3_1/cc_build_Debug.log
Ex3_1/Debug
Ex3_1/Debug/Ex4_1.obj
Ex3_1/Debug.lkf
Ex3_1/Debug.lkv
Ex3_1/Ex4_1.asm
Ex3_1/Ex4_1.asm.c
Ex3_1/Ex4_1.cmd
Ex3_1/Ex4_1.map
Ex3_1/Ex4_1.out
Ex3_1/Ex4_1.paf
Ex3_1/Ex4_1.pjt
Ex3_1/新建文件夹
Ex3_1/cc_build_Debug.log
Ex3_1/Debug
Ex3_1/Debug/Ex4_1.obj
Ex3_1/Debug.lkf
Ex3_1/Debug.lkv
Ex3_1/Ex4_1.asm
Ex3_1/Ex4_1.asm.c
Ex3_1/Ex4_1.cmd
Ex3_1/Ex4_1.map
Ex3_1/Ex4_1.out
Ex3_1/Ex4_1.paf
Ex3_1/Ex4_1.pjt
Ex3_1/新建文件夹
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.