- 1、本文档共87页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
* * * Mention A bus and B bus on 7TDMI core. Give examples: ADD r0, r1, r2 ADD r0, r1, r2, LSL#7 ADD r0, r1, r2, LSL r3 ADD r0, r1, #0x4E * * Could have used 12 bits directly for immediate value - this would allow 0-4095. But this does not allow any large numbers, which are useful for: base address of memory devices in target system large, but simple hex constants (0x10000) Research has shown there is a need for a large range of small numbers (frequently needed) but also some large numbers. 50% of all constants lie between the range -15 and +15 and 90% lie in the range -511 and +511. Will vary depending on the application. ROR #n is confusing… but can be considered as ROL #32-n Opcode 0xe3a004ff = MOV r0, #0xff, 8 Core rotates 0xff right by 4 pairs of bits = MOV r0, #0xff000000 * Point out that it is 8-bit value shifted to anywhere within the 32-bit word (but must be an even number of bits). Other bits are zeros. Mention that ROR#2,4,6 (not shown) will split the 8-bit immediate with some bits at bottom of word and some at top. mov r0, #256 ; mov r0, #0x100 mov r1, #0x40, 30 ; mov r1, #0x100 etc. This method of generating constants allows 3073 distinct values, about 25% fewer than if 12-bits were used without modification. They are, however, a much more useful set of values. * Rotate left can be implemented as rotate right (32-number), e.g. rotate left of 10 is performed using rotate right of 22. RRX shifts by 1 bit position, of a 33 bit amount (includes carry flag). Very specialized application (e.g. encryption algorithms). Cannot be generated by C compiler. We have used it for 64/64 bit divide. RRX allows you to shift multiprecision values right by one efficiently. Also used in ARM’s MPEG code in a very tricky piece of code. ANSI C does not have a rotate operation (it only has ““ and “” which are the equivalent of LSL, LSR and ASR). However the ARM compiler recognizes rotate type expresssions and optimizes these to use ROR, e.g. int f(unsigne
您可能关注的文档
- 第四节 核反应 核能、重核裂变.ppt
- 第四节-动能定理习题课.ppt
- 第四节 四大声腔的演变及昆曲.ppt
- 第四节 细胞呼吸.ppt
- 第四节 青贮饲料课件.ppt
- 第四节 幼儿德育.ppt
- 第四节(精品课件)__多种多样的生态系统.ppt
- 第四节_研究有机化合物的一般步骤和方法(1、2节).ppt
- 第四节_马来西亚.ppt
- 第四节《地球的圈层结构》.ppt
- 2023年江苏省镇江市润州区中考生物二模试卷+答案解析.pdf
- 2023年江苏省徐州市邳州市运河中学中考生物二模试卷+答案解析.pdf
- 2023年江苏省苏州市吴中区中考冲刺数学模拟预测卷+答案解析.pdf
- 2023年江苏省南通市崇川区田家炳中学中考数学四模试卷+答案解析.pdf
- 2023年江西省吉安市中考物理模拟试卷(一)+答案解析.pdf
- 2023年江苏省泰州市海陵区九年级(下)中考三模数学试卷+答案解析.pdf
- 2023年江苏省苏州市高新二中中考数学二模试卷+答案解析.pdf
- 2023年江苏省南通市九年级数学中考复习模拟卷+答案解析.pdf
- 2023年江苏省南通市海安市九年级数学模拟卷+答案解析.pdf
- 2023年江苏省泰州市靖江外国语学校中考数学一调试卷+答案解析.pdf
文档评论(0)