c_asmtest.c

来自「CHP 2 - Real-Time Digital Signal Process」· C语言 代码 · 共 27 行

C
27
字号
// 
//  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 + =
减小字号Ctrl + -
显示快捷键?