文件名称:Ex3_1
介绍说明--下载内容均来自于网络,请自行研究使用
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
.....\cc_build_Debug.log
.....\Debug
.....\.....\Ex4_1.obj
.....\Debug.lkf
.....\Debug.lkv
.....\Ex4_1.asm
.....\Ex4_1.asm.c
.....\Ex4_1.cmd
.....\Ex4_1.map
.....\Ex4_1.out
.....\Ex4_1.paf
.....\Ex4_1.pjt
.....\新建文件夹