⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sum.asm

📁 CHP 2 - Real-Time Digital Signal Processing: Implementations and Applications, Second Edition by Sen
💻 ASM
字号:
; 
;  Project: Experiment 2.10.1 Interface C with assembly code - Chapter 2 
;  File name: sum.asm   
;
;  Description: This assembly function returns the sum of two data in an array
;
;  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
;

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
*
*   sum.asm SUM subroutine
*	
*   Called by c_asmText.c
*   Input: Array pointer
*   Output: Return sum result in T0
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
	.global	_sum
_sum
    mov  *AR0+,AC0    ; AC0 = x[1]
    add  *AR0+,AC0    ; AC0 = x[1]+x[2]
    mov  AC0,T0
    ret	              ; Return T0
    .end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -