- 1、本文档共18页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
as_汇编语法(As_ assembly syntax)
as_汇编语法(As_ assembly syntax)
Quote ARM under Linux assembler syntax, ARM instruction, 2010-08-05 23:50:44, read 86 comments, 0: big, medium and small subscriptions
This article is quoted from U-BOOTs ARM assembler syntax under Linux
Quote
ARM assembler syntax under Linux U-BOOT
Although it is convenient to write programs using C or C++ under Linux, the assembler source is used for the most basic initialization of the system, such as initializing the stack pointer, setting the page table, and operating the coprocessor of ARM. Once the initialization is complete, you can jump to the C code execution. Note that the GNU assembler, follow the ATT compilation of grammar, available from the GNU site to download the relevant specification ().
1. Linux assembler line structure
Any assembly line is structured as follows:
[]: [} @ comment
[] notes: [} @
In the Linux ARM assembly, any identifier ending with a colon is considered a label, not necessarily at the beginning of a line.
Define a add function that returns the sum of two arguments.
.section.Text, x.
.global add @ give, the, symbol, add, external, linkage
Add:
ADD, R0, R0, R1 @ add, input, arguments
MOV, PC, LR @ return, from, subroutine
@ end of program
Two. Linux assembly procedures in the label
Label only by a ~ Z, A ~ Z, 0 ~ 9 . _ characters etc.. When the number marked 0~9 is a local label, the local label can be repeated, using the following method:
Label f: the forward label in the reference
The label where the label b: is backward in reference
[example 2] an example of a partial symbol, a cycle program
1:
Subs, R0, R0, #1 @ every loop makes r0=r0-1
Bne 1F @ jump to 1 label to perform
A partial label represents the address it is in, so it can also be used as a variable or function.
Three. Linux segmentation in assembler
(1).Section pseudo manipulation
The user can define a paragraph from the.Section pseudo operation, as follows:
.section section_name [[flags], [%type[, flag_specific_arguments]]]]
Each paragraph s
您可能关注的文档
- 2011-2012学年八年级生物第一学期期中试题试卷 人教版(2011-2012 school year eight grade biology test papers first semester teaching edition).doc
- 201107-0011-陈君辉-中职畜牧兽医专业提高教学质量的再认识(Re understanding of Chen Junhui 201107-0011- - the animal husbandry and veterinary specialty in secondary vocational schools to improve teaching quality).doc
- 201106-0010-邱媛-激发写话兴趣 引导乐于表达(201106-0010- Qiu Yuan - inspired writing guide to express interest).doc
- 2011.1.30大陆(2011.1.30,).doc
- 2011年4月自考马克思主义基本原理概论模拟试题及答案(An introduction to the basic principle of Marx's April 2011 self simulation questions and answers).doc
- 2011年qs世界大学前50(2011 QS World University 50).doc
- 2011年中山大学部分专业将实行大类招生(In 2011, Zhongshan University will implement professional enrollment).doc
- 2011年中考总复习化学九年级下册过关检测(二)(附教师版解析)_百度文库...(The 2011 senior high school entrance examination general review of chemistry of grade nine clearance detection (two) (with Teacher Edition analysis) _ Baidu library...).doc
- 2011年六年级下学期语文阶段性作业设计训练题(In 2011, the sixth grade term Chinese training exercises design stage).doc
- 2011年广东高考语文试题(a卷)(2011 Guangdong Chinese college entrance examination (a)).doc
最近下载
- 铁路施工组织设计.pdf VIP
- 路由交换技术微课版左浩课后参考答案.docx
- 颈椎病教学查房_图文.ppt VIP
- 精品解析:2023-2024学年山东省滨州市阳信县统编版六年级下册期末考试语文试卷(解析版).docx VIP
- 精品解析:2023-2024学年山东省滨州市阳信县统编版六年级下册期末考试语文试卷(原卷版).docx VIP
- 第八章 半导体探测器.ppt VIP
- 初中信息技术中考excel操作题.pdf VIP
- 05SFG04防空地下室室外出入口部钢结构装配式防倒塌棚架结构设计.docx VIP
- 多团队协作下的加速康复外科ERAS.pptx VIP
- 3气体探测器完整版.ppt VIP
文档评论(0)