网站大量收购独家精品文档,联系QQ:2885784924

DSP实验图结果【DOC精选】.doc

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

实验一 #includestdio.h main() {int a=4;int b=15;int c; c=a+b; for(;;); } 实验二 .title ex3 .mmregs .global _c_int00 VAL1 .set 012h ; 18 VAL2 .set 034h ; 52 VAL3 .set 04000h ; 0.5 VAL4 .set 02000h ; 0.25(fraction) 8192 (integer) VAL5 .set 04ab8h ; 0.58374 VAL6 .set 0ffeeh ; -18 VAL7 .set 0b548h ; -0.58374 .bss temp,1 ; address of 0x080 .bss temp1,1 ; address of 0x081 .bss temp2,1 ; address of 0x082 .bss temp3,1 ; address of 0x083 .bss temp4,1 ; address of 0x084 .bss temp5,1 ; address of 0x085 .bss temp6,1 ; address of 0x086 .bss temp7,1 ; address of 0x087 ;result register .bss add_result,1 ; address of 0x088 .bss sub_result,1 ; address of 0x089 .bss mpy_i_h,1 ; address of 0x08a .bss mpy_i_l,1 ; address of 0x08b .bss mpy_f,1 ; address of 0x08c .bss quot_i,1 ; address of 0x08d .bss remain_i,1 ; address of 0x08e .bss quot_f,1 ; address of 0x08f .text _c_int00: ld #temp,DP ; load DP of temp1 st #VAL1,temp1 st #VAL2,temp2 ; init temp1 temp2,18*52=936(0x3a8) ;-------- test MPY (integer) ----------------- rsbx FRCT ; prepare for integer mpy ld temp1,T ; temp1 - T mpy temp2,a ; temp1*temp2 - A (result is 32 bit) sth a,mpy_i_h ; the high 16bit in mpy_i_h stl a,mpy_i_l ; the low 16bit in mpy_i_l nop ; set breakpoint st #VAL3,temp3 st #VAL7,temp4 ; init temp3 temp4,0.5*(-0.58374)=-0.29187(0x0daa4) ;-------- test MPY (fraction) -----------

文档评论(0)

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

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

1亿VIP精品文档

相关文档