会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小飞Python
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2018年12月26日
GNU 汇编 协处理器指令
摘要: 1. CP15 协处理器 16组寄存器 mcr 写 mrc (rgeister CP15) 读 CP15 到 Register mrc p15,0,c0,c0,0
阅读全文
posted @ 2018-12-26 10:09 小飞Python
阅读(201)
评论(0)
推荐(0)
2018年12月25日
GNU汇编 伪指令
摘要: 伪指令 本身并没有所对应的机器码 它只是在编译的时候起作用,或者转换为其他的实际指令来运行 global ascii byte word data equ align @ 下面的例子是在数据段存放数据 .section .data hello: .ascii "helloworld" bh: .by
阅读全文
posted @ 2018-12-25 22:11 小飞Python
阅读(265)
评论(0)
推荐(0)
GNU汇编 存储器访问指令
摘要: .text .global _start _start: mov r0,#0xff str r0,[r1] ldr r2,[r1]
阅读全文
posted @ 2018-12-25 18:24 小飞Python
阅读(122)
评论(0)
推荐(0)
GNU汇编 程序状态字访问指令
摘要: .text .global _start _start: mrs r0,cpsr orr r0,#0b100 msr cpsr,r0
阅读全文
posted @ 2018-12-25 18:13 小飞Python
阅读(100)
评论(0)
推荐(0)
GNU汇编逻辑或算数左移右移
摘要: lsl 左移 .text .global _start _start: mov r1,#0b1 mov r1,r1,lsl#2 ROR循环右移 .text .global _start _start: mov r1,#0b11 mov r1,r1,ror#1
阅读全文
posted @ 2018-12-25 18:04 小飞Python
阅读(377)
评论(0)
推荐(0)
GNU汇编 函数调用的例子
摘要: .text .global _start _start: mov r1,#2 cmp r1,#1 bl func1 @bl能保存下一条指令的位置到lr寄存器里面,b不能 mov r1, #2 cmp r1, #3 func1: mov r1,#2 mov r2,#3 mov pc,lr @PC指针的
阅读全文
posted @ 2018-12-25 17:37 小飞Python
阅读(282)
评论(0)
推荐(0)
汇编 if else 例子
摘要: .text .global _start _start: mov r1,#1 mov r2,#2 cmp r1, r2 bgt branch1 add r3,r1,r2 b end branch1: sub r3,r1,r2 end: nop C 语言: if(a>b) a = a- b else
阅读全文
posted @ 2018-12-25 17:21 小飞Python
阅读(1061)
评论(0)
推荐(0)
GNU汇编程序框架
摘要: 汇编的作用:1.对芯片进行初始化 2. 和C混合编程提升C的运行效率 .section .data < 初始化的数据> .section .bss <未初始化的数据> .section .text .globl _start _start: <汇编代码> 建立汇编代码: 例子: .text .glo
阅读全文
posted @ 2018-12-25 15:03 小飞Python
阅读(181)
评论(0)
推荐(0)
嵌入式开发 centos7 交叉编译环境准备
摘要: 1. 安装centos7,启动图像化界面。 参考:https://blog.csdn.net/qq_23014435/article/details/74347925 # systemctl get-default //获取当前系统启动模式 更改模式命令:systemctl set-default
阅读全文
posted @ 2018-12-25 14:44 小飞Python
阅读(1503)
评论(0)
推荐(0)
2018年8月12日
Install Jenkins 2.1.36 and openjdk 1.7.0 on centos 7
摘要: #!/bin/bash## Copyright (c) 2014-2015 Michael Dichirico (https://github.com/mdichirico)# This software/script is released under the terms of the MIT l
阅读全文
posted @ 2018-08-12 18:49 小飞Python
阅读(249)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告