没有合适的资源?快使用搜索试试~ 我知道了~
EWARM_AssemblerReference.ENU
3星 · 超过75%的资源 需积分: 10 22 下载量 167 浏览量
2010-01-05
21:41:56
上传
评论
收藏 1.28MB PDF 举报
温馨提示
试读
137页
EWARM_AssemblerReference.ENU介绍iar使用方法
资源推荐
资源详情
资源评论
AARM-8
ARM® IAR Assembler
Reference Guide
for Advanced RISC Machines Ltd’s
ARM Cores
AARM-8
COPYRIGHT NOTICE
© Copyright 1999–2007 IAR Systems. All rights reserved.
No part of this document may be reproduced without the prior written consent of IAR
Systems. The software described in this document is furnished under a license and may
only be used or copied in accordance with the terms of such a license.
DISCLAIMER
The information in this document is subject to change without notice and does not
represent a commitment on any part of IAR Systems. While the information contained
herein is assumed to be accurate, IAR Systems assumes no responsibility for any errors
or omissions.
In no event shall IAR Systems, its employees, its contractors, or the authors of this
document be liable for special, direct, indirect, or consequential damage, losses, costs,
charges, claims, demands, claim for lost profits, fees, or expenses of any nature or kind.
TRADEMARKS
IAR, IAR Systems, IAR Embedded Workbench, IAR MakeApp, C-SPY, visualSTATE,
From Idea To Target, IAR KickStart Kit and IAR PowerPac are trademarks or registered
trademarks owned by IAR Systems AB.
ARM and Thumb are registered trademarks of Advanced RISC Machines Ltd.
Microsoft and Windows are registered trademarks of Microsoft Corporation.
All other product names are trademarks or registered trademarks of their respective
owners.
EDITION NOTICE
Eighth edition: June 2007
Part number: AARM-8
This guide applies to version 5.x of the ARM® IAR Embedded Workbench® IDE.
Internal reference: ISUD.
AARM-8
iii
Contents
Tables ....................................................................................................................... ix
Preface ..................................................................................................................... xi
Who should read this guide ................................................................xi
How to use this guide ............................................................................ xi
What this guide contains .....................................................................xii
Other documentation ...........................................................................xii
Document conventions .......................................................................xiii
Introduction to the ARM IAR Assembler ............................................. 1
Introduction to assembler programming ...................................... 1
Getting started ...................................................................................... 2
Modular programming ........................................................................... 2
External interface details ...................................................................... 3
Assembler invocation syntax ............................................................... 3
Passing options ..................................................................................... 4
Environment variables ......................................................................... 4
Error return codes ................................................................................. 5
Source format ............................................................................................ 5
Assembler instructions .......................................................................... 6
Expressions, operands, and operators ............................................. 6
Integer constants .................................................................................. 6
ASCII character constants .................................................................... 7
Floating-point constants ....................................................................... 7
TRUE and FALSE ............................................................................... 8
Symbols ................................................................................................ 8
Labels ................................................................................................... 9
Register symbols .................................................................................. 9
Predefined symbols ............................................................................ 10
Absolute and relocatable expressions ................................................ 11
Expression restrictions ....................................................................... 12
AARM-8
iv
ARM® IAR Assembler
Reference Guide
List file format .......................................................................................... 13
Header ................................................................................................ 13
Body ................................................................................................... 13
Summary ............................................................................................ 13
Symbol and cross-reference table ...................................................... 13
Programming hints ................................................................................ 14
Accessing special function registers .................................................. 14
Using C-style preprocessor directives ................................................ 14
Assembler options ........................................................................................... 15
Setting command line options .......................................................... 15
Extended command line file .............................................................. 15
Summary of assembler options ........................................................ 16
Descriptions of assembler options .................................................. 17
Assembler operators ...................................................................................... 29
Precedence of operators ..................................................................... 29
Summary of assembler operators ................................................... 29
Unary operators – 1 ............................................................................ 29
Multiplicative arithmetic operators – 2 .............................................. 30
Additive arithmetic operators – 3 ....................................................... 30
Shift operators – 4 .............................................................................. 30
AND operators – 5 ............................................................................. 30
OR operators – 6 ................................................................................ 30
Comparison operators – 7 .................................................................. 31
Operator synonyms ............................................................................ 31
Description of operators ..................................................................... 32
Assembler directives ....................................................................................... 43
Summary of assembler directives ................................................... 43
Module control directives ................................................................... 47
Syntax ................................................................................................. 48
Parameters .......................................................................................... 48
Descriptions ....................................................................................... 48
AARM-8
Contents
v
Symbol control directives ................................................................... 50
Syntax ................................................................................................. 50
Parameters .......................................................................................... 50
Descriptions ....................................................................................... 51
Examples ............................................................................................ 51
Mode control directives ....................................................................... 52
Syntax ................................................................................................. 52
Description ......................................................................................... 53
Examples ............................................................................................ 53
Section control directives ................................................................... 54
Syntax ................................................................................................. 54
Parameters .......................................................................................... 55
Descriptions ....................................................................................... 55
Examples ............................................................................................ 56
Value assignment directives .............................................................. 57
Syntax ................................................................................................. 57
Parameters .......................................................................................... 57
Descriptions ....................................................................................... 58
Conditional assembly directives ....................................................... 58
Syntax ................................................................................................. 59
Parameters ......................................................................................... 59
Descriptions ....................................................................................... 59
Examples ............................................................................................ 60
Macro processing directives ............................................................... 60
Syntax ................................................................................................. 61
Parameters .......................................................................................... 61
Descriptions ....................................................................................... 61
Examples ............................................................................................ 65
Listing control directives ..................................................................... 68
Syntax ................................................................................................. 68
Parameters .......................................................................................... 69
Descriptions ....................................................................................... 69
Examples ............................................................................................ 70
剩余136页未读,继续阅读
资源评论
- jerrylwb_20112014-05-07有点用,谢谢!
pwelly506
- 粉丝: 0
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 202304910142原道明(1).pbix
- 基于Lua的聊天过滤修改版设计源码
- Uibot6.0 (RPA财务机器人师资培训第5天 ) 报销汇总机器人案例实战
- 基于Vue的西安美食攻略应用程序设计源码
- tensorflow-2.6.2-cp38-cp38-win-amd64.whl
- 2023-04-06-项目笔记 - 第八十六阶段 - 4.4.2.84全局变量的作用域-84 -2024.03.28
- 基于C语言解决九宫重排问题(源码+剖析)
- 考研分数计算神器(通过考研分数计算规则制作出来的计算工具,结果精准,操作简单,并且还可以与第二个人进行比较)
- 脚本监控重要文件,并邮箱报警
- 九宫重排介绍.zip说明
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功