没有合适的资源?快使用搜索试试~ 我知道了~
首页Arm Compiler armasm 用户指南
"DUI0801J_armasm_user_guide.pdf" 是一份关于Arm编译器armasm的用户指南,适用于Armv6-M、Armv7和Armv8架构,详细介绍了armasm的使用方法和汇编指令。
本文档是Arm Compiler版本6.6的armasm用户指南,由Arm Limited或其关联公司在2014年至2019年间发布,版权所有。它包含了自v6.00至v6.6.3的所有版本的更新历史,每个版本的发布日期和主要变更内容。
armasm是Arm公司提供的汇编器,用于编写针对Arm处理器的汇编语言代码。汇编语言是一种低级编程语言,直接对应于机器指令,允许程序员对硬件进行精细控制。在该用户指南中,读者可以找到关于armasm的命令行选项、语法规则、汇编指令的详细解释以及如何正确使用这些指令来编写高效的代码。
汇编语言在嵌入式系统、实时操作系统(RTOS)、设备驱动程序和需要高性能计算的领域中尤其重要。对于Armv6-M、Armv7和Armv8架构,每个都有其特定的指令集和特性,因此了解如何针对这些架构有效地使用armasm至关重要。
Armv6-M架构主要用于微控制器,具有低功耗和低成本的特点,适用于物联网(IoT)设备。Armv7架构扩展了Armv6的功能,增加了更多指令集和浮点运算支持,适合更复杂的嵌入式应用。而Armv8架构引入了64位计算,为服务器、移动设备和高性能计算提供了更强大的处理能力。
通过这份用户指南,开发者能够学习到如何使用armasm来:
1. 定义和管理符号。
2. 编写和优化汇编代码,提高执行效率。
3. 使用伪指令,如数据定义和跳转指令。
4. 调试汇编代码,理解其运行过程。
5. 理解并应用特定于架构的指令,如NEON(向量浮点处理)和TrustZone(安全区域)。
6. 配合链接器(linker)和其他工具进行构建流程。
"DUI0801J_armasm_user_guide.pdf" 是一个全面的参考资料,对于那些希望深入理解Arm处理器汇编语言编程的开发者来说,是一份不可或缺的工具书。通过这份文档,读者不仅可以学习到armasm的基本用法,还能掌握如何利用汇编语言实现高效、有针对性的编程,从而充分利用Arm处理器的性能。
14.107 VRECPS .............................................................................................................. 14-741
14.108 VREV16, VREV32, and VREV64 ........................................................................ 14-742
14.109 VRHADD ...................................................... ...................................................... 14-743
14.110 VRSHL (by signed variable) ................................................................................ 14-744
14.111 VRSHR (by immediate) ........................................... ........................................... 14-745
14.112 VRSHRN (by immediate) .......................................... .......................................... 14-746
14.113 VRINT .................................................................................................................. 14-747
14.114 VRSQRTE ..................................................... ..................................................... 14-748
14.115 VRSQRTS ..................................................... ..................................................... 14-749
14.116 VRSRA (by immediate) ........................................... ........................................... 14-750
14.117 VRSUBHN ..................................................... ..................................................... 14-751
14.118 VSHL (by immediate) .......................................................................................... 14-752
14.119 VSHL (by signed variable) ......................................... ......................................... 14-754
14.120 VSHLL (by immediate) ........................................................................................ 14-755
14.121 VSHR (by immediate) .......................................................................................... 14-756
14.122 VSHRN (by immediate) ........................................... ........................................... 14-757
14.123 VSLI .......................................................... .......................................................... 14-758
14.124 VSRA (by immediate) .......................................................................................... 14-759
14.125 VSRI .................................................................................................................... 14-760
14.126 VSTM ......................................................... ......................................................... 14-761
14.127 VSTn (multiple n-element structures) .................................................................. 14-762
14.128 VSTn (single n-element structure to one lane) .................................................... 14-764
14.129 VSTR ......................................................... ......................................................... 14-766
14.130 VSTR (post-increment and pre-decrement) ............................ ............................ 14-767
14.131 VSUB ......................................................... ......................................................... 14-768
14.132 VSUBHN .............................................................................................................. 14-769
14.133 VSUBL and VSUBW ............................................................................................ 14-770
14.134 VSWP .................................................................................................................. 14-771
14.135 VTBL and VTBX .................................................................................................. 14-772
14.136 VTRN ......................................................... ......................................................... 14-773
14.137 VTST ......................................................... ......................................................... 14-774
14.138 VUZP ......................................................... ......................................................... 14-775
14.139 VZIP .......................................................... .......................................................... 14-776
Chapter 15 Floating-point Instructions (32-bit)
15.1 Summary of floating-point instructions ................................ ................................ 15-779
15.2 VABS (floating-point) ............................................. ............................................. 15-781
15.3 VADD (floating-point) ............................................. ............................................. 15-782
15.4 VCMP, VCMPE .................................................................................................... 15-783
15.5 VCVT (between single-precision and double-precision) ...................................... 15-784
15.6 VCVT (between floating-point and integer) ............................ ............................ 15-785
15.7 VCVT (from floating-point to integer with directed rounding modes) ......... ......... 15-786
15.8 VCVT (between floating-point and fixed-point) .................................................... 15-787
15.9 VCVTB, VCVTT (half-precision extension) .......................................................... 15-788
15.10 VCVTB, VCVTT (between half-precision and double-precision) ............ ............ 15-789
15.11 VDIV .................................................................................................................... 15-790
15.12 VFMA, VFMS, VFNMA, VFNMS (floating-point) ........................ ........................ 15-791
15.13 VJCVT ........................................................ ........................................................ 15-792
15.14 VLDM (floating-point) ............................................. ............................................. 15-793
15.15 VLDR (floating-point) ............................................. ............................................. 15-794
DUI0801J Copyright © 2014–2017, 2019 Arm Limited or its affiliates. All rights
reserved.
16
Non-Confidential
15.16 VLDR (post-increment and pre-decrement, floating-point) .................................. 15-795
15.17 VLDR pseudo-instruction (floating-point) .............................. .............................. 15-796
15.18 VLLDM ........................................................ ........................................................ 15-797
15.19 VLSTM ........................................................ ........................................................ 15-798
15.20 VMAXNM, VMINNM (floating-point) .................................................................... 15-799
15.21 VMLA (floating-point) ............................................. ............................................. 15-800
15.22 VMLS (floating-point) ............................................. ............................................. 15-801
15.23 VMOV (floating-point) .......................................................................................... 15-802
15.24 VMOV (between one general-purpose register and single precision floating-point
register) ....................................................... ....................................................... 15-803
15.25 VMOV (between two general-purpose registers and one or two extension registers) ....
.............................................................................................................................. 15-804
15.26 VMOV (between a general-purpose register and half a double precision floating-point
register) ....................................................... ....................................................... 15-805
15.27 VMRS (floating-point) .......................................................................................... 15-806
15.28 VMSR (floating-point) .......................................................................................... 15-807
15.29 VMUL (floating-point) ............................................. ............................................. 15-808
15.30 VNEG (floating-point) .......................................................................................... 15-809
15.31 VNMLA (floating-point) ........................................................................................ 15-810
15.32 VNMLS (floating-point) ............................................ ............................................ 15-811
15.33 VNMUL (floating-point) ........................................................................................ 15-812
15.34 VPOP (floating-point) ............................................. ............................................. 15-813
15.35 VPUSH (floating-point) ........................................................................................ 15-814
15.36 VRINT (floating-point) .......................................................................................... 15-815
15.37 VSEL ......................................................... ......................................................... 15-816
15.38 VSQRT ................................................................................................................ 15-817
15.39 VSTM (floating-point) ............................................. ............................................. 15-818
15.40 VSTR (floating-point) ............................................. ............................................. 15-819
15.41 VSTR (post-increment and pre-decrement, floating-point) .................................. 15-820
15.42 VSUB (floating-point) ............................................. ............................................. 15-821
Chapter 16 A64 General Instructions
16.1 A64 instructions in alphabetical order .................................................................. 16-826
16.2 Register restrictions for A64 instructions .............................. .............................. 16-832
16.3 ADC .......................................................... .......................................................... 16-833
16.4 ADCS ......................................................... ......................................................... 16-834
16.5 ADD (extended register) ...................................................................................... 16-835
16.6 ADD (immediate) ................................................ ................................................ 16-837
16.7 ADD (shifted register) .......................................................................................... 16-838
16.8 ADDS (extended register) ......................................... ......................................... 16-839
16.9 ADDS (immediate) ............................................... ............................................... 16-841
16.10 ADDS (shifted register) ........................................................................................ 16-842
16.11 ADR .......................................................... .......................................................... 16-843
16.12 ADRL pseudo-instruction .......................................... .......................................... 16-844
16.13 ADRP ......................................................... ......................................................... 16-845
16.14 AND (immediate) ................................................ ................................................ 16-846
16.15 AND (shifted register) .......................................................................................... 16-847
16.16 ANDS (immediate) ............................................... ............................................... 16-848
16.17 ANDS (shifted register) ........................................................................................ 16-849
16.18 ASR (register) ...................................................................................................... 16-850
DUI0801J Copyright © 2014–2017, 2019 Arm Limited or its affiliates. All rights
reserved.
17
Non-Confidential
16.19 ASR (immediate) ................................................ ................................................ 16-851
16.20 ASRV ......................................................... ......................................................... 16-852
16.21 AT ........................................................................................................................ 16-853
16.22 AUTDA, AUTDZA ................................................................................................ 16-855
16.23 AUTDB, AUTDZB ................................................................................................ 16-856
16.24 AUTIA, AUTIZA, AUTIA1716, AUTIASP, AUTIAZ ....................... ....................... 16-857
16.25 AUTIB, AUTIZB, AUTIB1716, AUTIBSP, AUTIBZ ....................... ....................... 16-858
16.26 B.cond ........................................................ ........................................................ 16-859
16.27 B .......................................................................................................................... 16-860
16.28 BFC .......................................................... .......................................................... 16-861
16.29 BFI ........................................................... ........................................................... 16-862
16.30 BFM .......................................................... .......................................................... 16-863
16.31 BFXIL ......................................................... ......................................................... 16-864
16.32 BIC (shifted register) ............................................................................................ 16-865
16.33 BICS (shifted register) ............................................ ............................................ 16-866
16.34 BL ........................................................................................................................ 16-867
16.35 BLR ...................................................................................................................... 16-868
16.36 BLRAA, BLRAAZ, BLRAB, BLRABZ ................................. ................................. 16-869
16.37 BR ........................................................................................................................ 16-870
16.38 BRAA, BRAAZ, BRAB, BRABZ ..................................... ..................................... 16-871
16.39 BRK .......................................................... .......................................................... 16-872
16.40 CBNZ ......................................................... ......................................................... 16-873
16.41 CBZ .......................................................... .......................................................... 16-874
16.42 CCMN (immediate) .............................................................................................. 16-875
16.43 CCMN (register) ................................................. ................................................. 16-876
16.44 CCMP (immediate) .............................................................................................. 16-877
16.45 CCMP (register) ................................................. ................................................. 16-878
16.46 CINC .................................................................................................................... 16-879
16.47 CINV .................................................................................................................... 16-880
16.48 CLREX ........................................................ ........................................................ 16-881
16.49 CLS ...................................................................................................................... 16-882
16.50 CLZ ...................................................................................................................... 16-883
16.51 CMN (extended register) .......................................... .......................................... 16-884
16.52 CMN (immediate) ................................................ ................................................ 16-886
16.53 CMN (shifted register) ............................................ ............................................ 16-887
16.54 CMP (extended register) .......................................... .......................................... 16-888
16.55 CMP (immediate) ................................................ ................................................ 16-890
16.56 CMP (shifted register) .......................................................................................... 16-891
16.57 CNEG .................................................................................................................. 16-892
16.58 CRC32B, CRC32H, CRC32W, CRC32X .............................. .............................. 16-893
16.59 CRC32CB, CRC32CH, CRC32CW, CRC32CX ......................... ......................... 16-894
16.60 CSEL ......................................................... ......................................................... 16-895
16.61 CSET ......................................................... ......................................................... 16-896
16.62 CSETM ................................................................................................................ 16-897
16.63 CSINC ........................................................ ........................................................ 16-898
16.64 CSINV .................................................................................................................. 16-899
16.65 CSNEG ................................................................................................................ 16-900
16.66 DC ........................................................... ........................................................... 16-901
16.67 DCPS1 ........................................................ ........................................................ 16-902
16.68 DCPS2 ........................................................ ........................................................ 16-903
DUI0801J Copyright © 2014–2017, 2019 Arm Limited or its affiliates. All rights
reserved.
18
Non-Confidential
16.69 DCPS3 ........................................................ ........................................................ 16-904
16.70 DMB .......................................................... .......................................................... 16-905
16.71 DRPS ......................................................... ......................................................... 16-907
16.72 DSB .......................................................... .......................................................... 16-908
16.73 EON (shifted register) .......................................................................................... 16-910
16.74 EOR (immediate) ................................................ ................................................ 16-911
16.75 EOR (shifted register) .......................................................................................... 16-912
16.76 ERET ......................................................... ......................................................... 16-913
16.77 ERETAA, ERETAB ............................................... ............................................... 16-914
16.78 ESB .......................................................... .......................................................... 16-915
16.79 EXTR ......................................................... ......................................................... 16-916
16.80 HINT .................................................................................................................... 16-917
16.81 HLT ...................................................................................................................... 16-918
16.82 HVC .......................................................... .......................................................... 16-919
16.83 IC ............................................................ ............................................................ 16-920
16.84 ISB ........................................................... ........................................................... 16-921
16.85 LSL (register) ................................................... ................................................... 16-922
16.86 LSL (immediate) .................................................................................................. 16-923
16.87 LSLV .................................................................................................................... 16-924
16.88 LSR (register) ...................................................................................................... 16-925
16.89 LSR (immediate) .................................................................................................. 16-926
16.90 LSRV ......................................................... ......................................................... 16-927
16.91 MADD .................................................................................................................. 16-928
16.92 MNEG .................................................................................................................. 16-929
16.93 MOV (to or from SP) ............................................................................................ 16-930
16.94 MOV (inverted wide immediate) .......................................................................... 16-931
16.95 MOV (wide immediate) ........................................................................................ 16-932
16.96 MOV (bitmask immediate) ......................................... ......................................... 16-933
16.97 MOV (register) .................................................. .................................................. 16-934
16.98 MOVK .................................................................................................................. 16-935
16.99 MOVL pseudo-instruction .................................................................................... 16-936
16.100 MOVN .................................................................................................................. 16-938
16.101 MOVZ .................................................................................................................. 16-939
16.102 MRS .......................................................... .......................................................... 16-940
16.103 MSR (immediate) ................................................ ................................................ 16-941
16.104 MSR (register) .................................................. .................................................. 16-942
16.105 MSUB .................................................................................................................. 16-943
16.106 MUL .......................................................... .......................................................... 16-944
16.107 MVN .......................................................... .......................................................... 16-945
16.108 NEG (shifted register) .......................................................................................... 16-946
16.109 NEGS .................................................................................................................. 16-947
16.110 NGC .......................................................... .......................................................... 16-948
16.111 NGCS .................................................................................................................. 16-949
16.112 NOP .......................................................... .......................................................... 16-950
16.113 ORN (shifted register) .......................................................................................... 16-951
16.114 ORR (immediate) ................................................ ................................................ 16-952
16.115 ORR (shifted register) .......................................................................................... 16-953
16.116 PACDA, PACDZA ................................................................................................ 16-954
16.117 PACDB, PACDZB ................................................................................................ 16-955
16.118 PACGA ................................................................................................................ 16-956
DUI0801J Copyright © 2014–2017, 2019 Arm Limited or its affiliates. All rights
reserved.
19
Non-Confidential
16.119 PACIA, PACIZA, PACIA1716, PACIASP, PACIAZ ....................... ....................... 16-957
16.120 PACIB, PACIZB, PACIB1716, PACIBSP, PACIBZ ....................... ....................... 16-958
16.121 PSB .......................................................... .......................................................... 16-959
16.122 RBIT .................................................................................................................... 16-960
16.123 RET .......................................................... .......................................................... 16-961
16.124 RETAA, RETAB ................................................. ................................................. 16-962
16.125 REV16 ........................................................ ........................................................ 16-963
16.126 REV32 ........................................................ ........................................................ 16-964
16.127 REV64 ........................................................ ........................................................ 16-965
16.128 REV .......................................................... .......................................................... 16-966
16.129 ROR (immediate) ................................................ ................................................ 16-967
16.130 ROR (register) .................................................. .................................................. 16-968
16.131 RORV .................................................................................................................. 16-969
16.132 SBC .......................................................... .......................................................... 16-970
16.133 SBCS ......................................................... ......................................................... 16-971
16.134 SBFIZ .................................................................................................................. 16-972
16.135 SBFM ......................................................... ......................................................... 16-973
16.136 SBFX ......................................................... ......................................................... 16-975
16.137 SDIV .................................................................................................................... 16-976
16.138 SEV .......................................................... .......................................................... 16-977
16.139 SEVL ......................................................... ......................................................... 16-978
16.140 SMADDL .............................................................................................................. 16-979
16.141 SMC .......................................................... .......................................................... 16-980
16.142 SMNEGL ...................................................... ...................................................... 16-981
16.143 SMSUBL .............................................................................................................. 16-982
16.144 SMULH ................................................................................................................ 16-983
16.145 SMULL ........................................................ ........................................................ 16-984
16.146 SUB (extended register) ...................................................................................... 16-985
16.147 SUB (immediate) ................................................ ................................................ 16-987
16.148 SUB (shifted register) .......................................................................................... 16-988
16.149 SUBS (extended register) .................................................................................... 16-989
16.150 SUBS (immediate) ............................................... ............................................... 16-991
16.151 SUBS (shifted register) ........................................................................................ 16-992
16.152 SVC .......................................................... .......................................................... 16-993
16.153 SXTB ......................................................... ......................................................... 16-994
16.154 SXTH ......................................................... ......................................................... 16-995
16.155 SXTW .................................................................................................................. 16-996
16.156 SYS .......................................................... .......................................................... 16-997
16.157 SYSL ......................................................... ......................................................... 16-998
16.158 TBNZ ......................................................... ......................................................... 16-999
16.159 TBZ .................................................................................................................... 16-1000
16.160 TLBI ......................................................... ......................................................... 16-1001
16.161 TST (immediate) ................................................................................................ 16-1003
16.162 TST (shifted register) ............................................ ............................................ 16-1004
16.163 UBFIZ ................................................................................................................ 16-1005
16.164 UBFM ................................................................................................................ 16-1006
16.165 UBFX ........................................................ ........................................................ 16-1007
16.166 UDIV .................................................................................................................. 16-1008
16.167 UMADDL ..................................................... ..................................................... 16-1009
16.168 UMNEGL ..................................................... ..................................................... 16-1010
DUI0801J Copyright © 2014–2017, 2019 Arm Limited or its affiliates. All rights
reserved.
20
Non-Confidential
剩余1762页未读,继续阅读
2019-08-22 上传
2020-04-28 上传
2020-01-17 上传
2021-08-07 上传
2019-04-10 上传
2019-06-10 上传
点击了解资源详情
smallstar02
- 粉丝: 3
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- JHU荣誉单变量微积分课程教案介绍
- Naruto爱好者必备CLI测试应用
- Android应用显示Ignaz-Taschner-Gymnasium取消课程概览
- ASP学生信息档案管理系统毕业设计及完整源码
- Java商城源码解析:酒店管理系统快速开发指南
- 构建可解析文本框:.NET 3.5中实现文本解析与验证
- Java语言打造任天堂红白机模拟器—nes4j解析
- 基于Hadoop和Hive的网络流量分析工具介绍
- Unity实现帝国象棋:从游戏到复刻
- WordPress文档嵌入插件:无需浏览器插件即可上传和显示文档
- Android开源项目精选:优秀项目篇
- 黑色设计商务酷站模板 - 网站构建新选择
- Rollup插件去除JS文件横幅:横扫许可证头
- AngularDart中Hammock服务的使用与REST API集成
- 开源AVR编程器:高效、低成本的微控制器编程解决方案
- Anya Keller 图片组合的开发部署记录
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功