打印

bne %ft0,这个指令中的t是做什么用的呢?和解。

[复制链接]
3251|6
手机看帖
扫描二维码
随时随地手机跟帖
沙发
John_light| | 2007-1-15 23:10 | 只看该作者

又貼一次

Local labels

A local label is a number in the range 0-99, optionally followed by a name. The same number can be used for more than one local label in an ELF section.

Local labels are typically used for loops and conditional code within a routine, or for small subroutines that are only used locally. They are particularly useful in macros.

You can use the same number for more than one local label even within the same scope.

By default, the assembler links a local label reference to:
. the most recent local label of the same number, if there is one within the scope
. the next following local label of the same number, if there is not a preceding one within the scope.

Use the optional parameters to modify this search pattern if required.

Syntax

The syntax of a local label is:
n{routname}
The syntax of a reference to a local label is:
%{F|B}{A|T}n{routname}

where:

n        is the number of the local label.
routname is the name of the current scope.
%        introduces the reference.
F        instructs the assembler to search forwards only.
B        instructs the assembler to search backwards only.
A        instructs the assembler to search all macro levels.
T        instructs the assembler to look at this macro level only.

If neither F or B is specified, the assembler searches backwards first, then forwards.
If neither A or T is specified, the assembler searches all macros from the current level to the top level, but does not search lower level macros.

使用特权

评论回复
板凳
luocolor|  楼主 | 2007-1-16 22:30 | 只看该作者

多谢John_light

多谢了。
还有个问题,这个资料是在哪里找的呢?

使用特权

评论回复
地板
John_light| | 2007-1-16 23:25 | 只看该作者

ARM Architecture Reference Manual

搞ARM,这书可不能缺。

使用特权

评论回复
5
平常人| | 2007-1-16 23:28 | 只看该作者

倒塌了。。。 http://www.arm.com

使用特权

评论回复
6
John_light| | 2007-1-17 09:02 | 只看该作者

以為是熱力hotpower,原來是平常人,哈哈

其實ADS Assembler Guide或者RealView Compilation Tools Assembler Guide都有相關說明,不過我比較愛翻那本書而已。

使用特权

评论回复
7
luocolor|  楼主 | 2007-1-17 23:53 | 只看该作者

呵呵

怪我懒了,不应该啊!
在ads安装后,pdf里面就有这个的。就是没有仔细去研究研究它。

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

40

主题

105

帖子

0

粉丝