📄 c_asmtest.c
字号:
//
// Project: Experiment 2.10.1 Interface C with assembly code - Chapter 2
// File name: c_asmTest.c
//
// Description: This is the main function for experiment 2.10.1
//
// For the book "Real Time Digital Signal Processing:
// Implementation and Application, 2nd Ed"
// By Sen M. Kuo, Bob H. Lee, and Wenshun Tian
// Publisher: John Wiley and Sons, Ltd
//
// Tools used: CCS v.2.12.07
// TMS320VC5510 DSK Rev-C
//
extern short sum(short *); // Assembly routine
short x[2]={0x1234,0x4321}; // Define x1[] as a global array
short s; // Define result s as a global variable
void main()
{
s = sum (x); // Call assembly routine _sum
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -