博客首页
注册
建议与交流
排行榜
加入友情链接
推荐
投诉
搜索:
帮助
JordonWu's Blog
jordonwu.cublog.cn
管理博客
发表文章
留言
收藏夹
博客圈
音乐
相册
文章
· ARM ASM
· Embedded-Linux
· Fund
· GUI
· IDE
· Linux
}
· Kernel
· QT2410
· 建筑
首页
关于作者
姓名: 职业: 年龄: 位置: 个性介绍:大部分文章是本人 学习过程中收集于网络上各位 大侠高人的文章,如有侵权请 来信告知,我将会尽快删除。 谢谢!!
||
<<
>>
||
我的分类
文章列表 - ARM ASM
blkCpy.s of ARM system-on-chip architecture
;Copy string from table1 to table2<BR> AREA blkCpy,CODE,READONLY <BR>SWI_ANGEL EQU 0x123456 ;SWI number for Angel semihosting <BR><BR> MACRO <BR>$l Exit ;Angel SWI call to terminate execution <BR>$l MOV r0, #0x18 ;Angel SWIreason_ReportException(0x18) <BR> LDR r1, =0x20026 ;report ADP_Stopped_ApplicationExit <BR> SWI SWI_ANGEL ;ARM semihosting SWI <BR> MEND <BR><BR> MACRO <BR>$l WriteC ;Angel SWI call to output char in [r1] <BR>$l MOV r0, #0x3 ;select Angel SYS_WRITEC function <BR> SWI SWI_ANGEL <BR> MEND <BR><BR> ENTRY ;code entry point <BR> ADR r1, TABLE1 ;r1->TABLE1<BR> ADR r2, TABLE2 ;r2->TABLE2<BR> ADR r3, T1END ;r3->T1END<BR>LOOP1 LDR r4, [r1], #4 ;GET TABLE1 1st WORD<BR> STR r4, [r2], #4 ;COPY INTO TABLE2<BR> CMP r1, r3 ;FINISHED?<BR> BLT LOOP1 ;IF NOT, DO MO……
查看全文
发表于:2008-05-23 ┆
阅读(106)
┆
评论(0)
helloW.s of ARM system-on-chip architecture
ARM system-on-chip architecture一书中的汇编源码(在RVDS2.1中调试通过)之 Helloworld.s<BR><BR><BR>;====================================================================================<BR>;Angel code examples<BR>;The following ARM code is the Angel equivalent of the "Hello World" program on page 69 in the book. Note that, although the WriteC macro is defined, it isn't used in the code as it is more efficient to retain the conditional SWI. <BR><BR><BR><BR> AREA HelloW,CODE,READONLY <BR>SWI_ANGEL EQU 0x123456 ;SWI number for Angel semihosting <BR><BR> MACRO <BR>$l Exit ;Angel SWI call to terminate execution <BR>$l MOV r0, #0x18 ;Angel SWIreason_ReportException(0x18) <BR> LDR r1, =0x20026 ;report ADP_Stopped_ApplicationExit <BR> SWI SWI_ANGEL ;ARM semihosting SWI <BR> MEND <BR><BR>; MACRO <BR>;$l WriteC ;Angel SWI call to output char in [r1] <BR>;$l MOV r0, #0x3……
查看全文
发表于:2008-05-23 ┆
阅读(123)
┆
评论(0)
ARM ASM 001 -- MOV_001
开始学习ARM汇编,会把这学习过程详细记录下来供以后参考。高手请勿浏览以免浪费你的时间。该系列学习笔记用的编译器是IAR5.1<BR><BR>MOV指令:<BR>在ARM中MOV指令不可以直接在存储器地址单元和寄存器间进行传递<BR><BR>MOV_001.asm:<BR>第一个ARM 汇编程序没什么好说的,就是把R5中的值赋给R7<BR><BR><BR>;===============================================================================<BR>;MOV_001.asm<BR>;===============================================================================<BR>NAME main<BR> PUBLIC __iar_program_start<BR> SECTION .intvec : CODE (2)<BR> CODE32<BR> __iar_program_start<BR> B main<BR><BR> SECTION .text : CODE (2)<BR> CODE32<BR><BR>main MOV r5, #5 <BR> MOV r7, #8 <BR> MOV r7, r5;<BR> B main<BR><BR> END<BR>;===============================================================================<BR><BR><BR><BR><BR>
查看全文
发表于:2008-05-06 ┆
阅读(143)
┆
评论(0)