Chapter 5 Assembly Language TI C5000官方课件.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Chapter 5 Assembly Language TI C5000官方课件

Copyright ? 2003 Texas Instruments. All rights reserved. DSP C5000 Chapter 5 Assembly Language Assembly Language Two Main types of assembly language : Algebraic Mnemonic Both C54x and C55x can use either type of assembly language. C54x Assembly Language The instruction set is divided into four basic types : Arithmetic Logic Load, Store Move Program control C54x has a fixed length instruction word Instruction must be encoded in one 16-bit word in order to be executed in one cycle Instructions and Operands General syntax of an instruction : Instr Op1,[Op2,[Op3,[…]]] For Instr field refer to TI documentation or following slides The Op1,[Op2,[Op3,[…]]] field syntax is specified in instruction documentation and specifies the way (type of addressing mode) you could use for the operands. Operand Syntax Arithmetic Instructions General purpose Arithmetic : Addition/subtraction Multiply (and accumulate) Square Divide Application Specific Arithmetic : Miscellaneous Polynomial evaluation Distance computation Specific filters Butterfly computation (Viterbi) General Purpose Arithmetic Addition/subtraction field4=field3 ?field1*2field2 Result is stored in field4 if present else in field3, shift is done according to field2 if present. Shift field is detailed on the next slide … Shift Field Many instructions use shift on one operand. This shift is specified in operands field and could be : Immediate if specified by the keywords: -16 ? SHIFT ? 15 0 ? SHIFT1 ? 15 Register indirect: -16 ? ASM? 15 (Accumulator Shift Mode field of ST1) -16 ? TS? 31 (TS are ths 6 LSBs of T register) General Purpose Arithmetic Addition/subtraction (special cases) Arithmetic with unsigned operand : field2=field2 ?unsigned(field1) Direct computation on memory : With : General Purpose Arithmetic Addition/subtraction (extended precision) : 32 bits : 1 : field2=field2 ?field1 2 : field2=field1-field2 If C16=0 field1 and field2 are considered as 32-bit operands and 32 bits ? is realized. If

文档评论(0)

skvdnd51 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档