数字信号处理技术第四章 汇编语言的开发工具.pptVIP

  • 1
  • 0
  • 约4.69千字
  • 约 25页
  • 2020-01-29 发布于辽宁
  • 举报

数字信号处理技术第四章 汇编语言的开发工具.ppt

第4章 汇编语言的开发工具 4.1 常用开发软件 TMS320C54x提供两种汇编语言: 汇编语言(可以用任何一种文本编辑器进行:如记事本,Word,EDIT,TC等。 C/C++语言。 当源程序编写好后,就要选择开发工具和环境。 TMS320C54x提供两种开发环境:非集成开发环境和 集成开发环境。 C Source files C compiler Assembler source Assembler COFF object files Linker Executable COFF file C54X Macro Source files Archiver Macro library Archiver Library of Object files Hex conversion utility EPROM programmer Absolute lister Crosseference lister Mnemonic-to -algebraic translator Assembler source Library- build Run time- Support library computer Debugging tools 非集成开发环境的软件开发流程 及工具: 4.2 源程序的结构 汇编语言源程序范例 y=a1*x1+a2*x2+a3*x3+a4*x4; .title “example.asm” .mmregs STACK: .usersct “STACK”,10h ;allocate space for stack .bss x,4 ;allocate 9 word for wariates .bss a,4 .bss y,1 .def start .data Table: .word 1,2,3,4 ;data follows… .word 8,6,4,2 .text ;code follows… Start: STM #0,SWWSR ;adds no wait states STM #STACK+10H,SP ;set stack pointer STM #a,AR1 ;AR1 point a RPT #7 ;move 8 value MVPD table, *AR1+ ;from program memory CALL SUM ;call subrotine end: B end SUM: STM #a, AR3 ;The subrotine implement STM #x, AR4 ;multiply-accumulate RPTZ #3 MAC *AR3+,*AR4+A STL A, @y RET .end 指令行的格式: 助记符 [操作数] [;注释] 用空格或TABS隔开 [标号][:] 4.3 源程序的编辑、汇编、链接过程 TEXT Editor asm500 HEX500 Ink500 debug .asm .obj .cmd -1 .lst -m .map -0 .out 4.4 COFF文件的格式

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档