在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 2502|回复: 2

arm汇编看不懂

[复制链接]
发表于 2005-7-8 11:01:14 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
MACRO
$HandlerLabel HANDLER $HandleLabel                       ---------------------------什么意思
$HandlerLabel
sub sp,sp,#4        ;decrement sp(to store jump address)
stmfd sp!,{r0}        USH the work register to stack(lr does't push because it return to original address)
ldr     r0,=$HandleLabel;load the address of HandleXXX to r0
ldr     r0,[r0]         ;load the contents(service routine start address) of HandleXXX
str     r0,[sp,#4]      ;store the contents(ISR) of HandleXXX to stack
ldmfd   sp!,{r0,pc}     OP the work register and pc(jump to ISR)
     MEND
[ ENDIAN_CHANGE
     ASSERT  EF:ENTRY_BUS_WIDTH                          -------------看不懂
     [ ENTRY_BUS_WIDTH=32
        b ChangeBigEndian     ;DCD 0xea000007 ----------------------------------------看不懂
     ]
     
     [ ENTRY_BUS_WIDTH=16
       andeq r14,r7,r0,lsl #20   ;DCD 0x0007ea00
     ]
     
     [ ENTRY_BUS_WIDTH=8
       streq r0,[r0,-r10,ror #1] ;DCD 0x070000ea
      ]
|
     b ResetHandler              ----------------------------------------看不懂
]
发表于 2005-7-8 13:01:33 | 显示全部楼层

arm汇编看不懂

仔细读一下ARM的汇编语言就懂了。前面一段是宏的语法,用来自定中断向量;
后面一段是汇编指示的连续应用,[代表IF,]代表ENDIF,|是ELSE
以下摘自ADS_assemberGuide_B.pdf文档7.6.1节,在ADS安装时有。
ASSERT
The ASSERT directive generates an error message during the second pass of the assembly
if a given assertion is false.
Syntax
ASSERT logical-expression
where:
logical-expression
is an assertion that can evaluate to either {TRUE} or {FALSE}.
Usage
Use ASSERT to ensure that any necessary condition is met during assembly.
If the assertion is false an error message is generated and assembly fails.
See also INFO on page 7-45.
Example
ASSERT label1 <= label2
发表于 2005-7-22 10:57:48 | 显示全部楼层

arm汇编看不懂

arm的汇编就是难懂啊 谢了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

小黑屋| 手机版| 关于我们| 联系我们| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2025-3-10 18:50 , Processed in 0.020249 second(s), 9 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表