- 1、本文档共7页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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) -----------
您可能关注的文档
- DSK逻辑配置【DOC精选】.doc
- DSM-分类【DOC精选】.doc
- DP典型题&详细解析【DOC精选】.doc
- ds Max Design 安装教程【DOC精选】.doc
- dsmaxbanshu【DOC精选】.doc
- DSM-Ⅳ-TR轴I障碍临床定式检查【DOC精选】.doc
- dsmax全部快捷键【DOC精选】.docx
- DSMAX中英文对照大全-dmax命令大全【DOC精选】.doc
- DMAX必备知识【DOC精选】.doc
- DSMAX快捷键【DOC精选】.doc
- 注册验船师高频真题题库2025.docx
- 注册验船师高频题库带解析2025.docx
- 注册验船师考试必备资料2025.docx
- 注册验船师精选题库带分析2025.docx
- 注册验船师考前冲刺必刷题附答案2025.docx
- 新高考生物二轮复习讲练测第10讲 人体的稳态与免疫调节(讲练)(原卷版).docx
- 新高考生物二轮复习讲练测第13讲 生物技术与工程(讲练)(原卷版).docx
- 新高考生物二轮复习讲练测第9讲 神经调节与体液调节(讲练)(原卷版).docx
- 新高考生物二轮复习讲练测第7讲 遗传的基本规律与伴性遗传(检测)(原卷版) .docx
- 新高考生物二轮复习讲练测第13讲 生物技术与工程(检测)(原卷版).docx
文档评论(0)