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官方教材.ppt

Status bit Set/Clear ? When these instructions are decoded to modify status bit CAFRZ (15), CAEN (14), or CACLR (13), the CPU pipeline is flushed and the instruction is executed in 5 cycles regardless of the instruction context. Extended auxiliary register (XAR) operations Logical operations Logical operations Logival operations Miscelaneous operations Move operations Move operations Move operations Some examples for the 17 forms of ADD ADD uns(*AR3) #31, AC1, AC0 The unsigned content addressed by AR3 shifted left by 31 bits is added to the content of AC1 and the result is stored in AC0. ADD dbl(*AR3+), AC1, AC0 The content (long word) addressed by AR3 and AR3 + 1 is added to the content of AC1 and the result is stored in AC0. Because this instruction is a long-operand instruction, AR3 is incremented by 2 after the execution. ADD *AR3, *AR4, AC0 The content addressed by AR3 shifted left by 16 bits is added to the content addressed by AR4 shifted left by 16 bits and the result is stored in AC0. ADD #FFFFh, *AR3 The content addressed by AR3 is added to a signed 16-bit value and the result is stored back into the location addressed by AR3. ADDV AC1, AC0 The absolute value of AC1 is added to the content of AC0 and the result is stored in AC0. Arithmetic instructions: compare and select extremum See examples and more details on next slides Index Search - DMAXDIFF, MAXDIFF DMAXDIFF ACx,ACy,ACz,ACw,TRNx 32-bit Search ACx/ACy = values, ACz = max, ACw = ACy-ACx, TRNx = index ~N cycles for N taps with index TRN0/1 0 15 1 (If new max, shift “1” into MSB) Splits AC’s into two 16-bit registers Max of hi/low halves placed in ACz, ACy-ACx placed in ACw, TRN0/1 hold index TRN0 (tracks AC high), TRN1 (tracks AC low) ~N/2 cycles for N taps with index MAXDIFF ACx,ACy,ACz,ACw Dual 16-bit Search MINDIFF and DMINDIFF also supported Example of MAXDIFF instruction MAXDIFF AC0, AC1, AC2, AC1 Before After AC0 10 2400 2222 AC0 10 2400 2222 AC1 90 0000 0000 AC1 FF 8000 DDDE AC2

您可能关注的文档

文档评论(0)

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

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

1亿VIP精品文档

相关文档