完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
area word,code,readonly
entry b start move stmfd sp!, {r4-r5,lr} ldr r4,=0 cmp r1,r4 ble _move_return add r4,r4,#1 _move_next ldr r5,[r0],#4 str r5,[r2],#4 add r4,r4,#1 cmp r4,r1 ble _move_next _move_return ldmfd sp!, {r4,r5,pc} append stmfd sp!, {r4,lr} mov r4,r2,lsl#2 str r0,[r1,r4] ldmfd sp!, {r4,pc} sort stmfd sp!, {r4-r10,lr} ldr r4,=1 cmp r1,r4 ble _sort_return mov r4,r0 mov r5,r1 mov r6,r2 mov r7,r3 ldr r8,=2 ldr r9,=0 ldr r10,=0 ldr r3,[r4],#4 _sort_next ldr r0,[r4],#4 cmp r0,r3 ble _sort_small_append _sort_big_append add r10,r10,#1 mov r1,r7 mov r2,r10 b _sort_next_append _sort_small_append add r9,r9,#1 mov r1,r6 mov r2,r9 _sort_next_append bl append add r8,r8,#1 cmp r8,r5 ble _sort_next mov r0,r3 add r9,r9,#1 mov r1,r6 mov r2,r9 bl append mov r0,r5,lsl#2 sub r4,r4,r0 mov r0,r6 mov r1,r9 mov r2,r4 bl move mov r0,r9,lsl#2 add r0,r0,#4 add r2,r4,r0 mov r0,r7 mov r1,r10 bl move mov r0,r4 mov r1,r9 mov r2,r6 mov r3,r7 bl sort add r0,r4,r9 mov r1,r10 mov r2,r6 mov r3,r7 bl sort _sort_return ldmfd sp!,{r4-r10,pc} load_data stmfd sp!,{r4,lr} ldr r4,=5 str r4,[r0],#4 ldr r4,=3 str r4,[r0],#4 ldr r4,=2 str r4,[r0],#4 ldr r4,=4 str r4,[r0],#4 ldmfd sp!,{r4,pc} start ldr r4,=0x00000 ldr r5,=4 ldr r6,=0x00010 ldr r7,=0x00020 mov r0,r4 bl load_data mov r0,r4 mov r1,r5 mov r2,r6 mov r3,r7 bl sort stop mov r0,#0x18 ldr r1,=0x20026 swi 0x123456 end 原作者:oZhangYi1234 |
|
相关推荐
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
飞凌嵌入式-ELFBOARD 硬件知识分享-ELF 2电源电路讲解
800 浏览 0 评论
1569 浏览 0 评论
飞凌嵌入式ElfBoard ELF 1板卡-mfgtools烧录流程介绍之烧写所需镜像
1394 浏览 0 评论
飞凌嵌入式ElfBoard ELF 1板卡-mfgtools烧录流程之烧写方法
844 浏览 0 评论
飞凌嵌入式ElfBoard ELF 1板卡-内核编译之初次编译
1335 浏览 0 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 08:23 , Processed in 0.647558 second(s), Total 71, Slave 54 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号