摘要:
1. CP15 协处理器 16组寄存器 mcr 写 mrc (rgeister CP15) 读 CP15 到 Register mrc p15,0,c0,c0,0 阅读全文
摘要:
伪指令 本身并没有所对应的机器码 它只是在编译的时候起作用,或者转换为其他的实际指令来运行 global ascii byte word data equ align @ 下面的例子是在数据段存放数据 .section .data hello: .ascii "helloworld" bh: .by 阅读全文
摘要:
.text .global _start _start: mov r0,#0xff str r0,[r1] ldr r2,[r1] 阅读全文
摘要:
.text .global _start _start: mrs r0,cpsr orr r0,#0b100 msr cpsr,r0 阅读全文
摘要:
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 阅读全文
摘要:
.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指针的 阅读全文
摘要:
.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 阅读全文
摘要:
汇编的作用:1.对芯片进行初始化 2. 和C混合编程提升C的运行效率 .section .data < 初始化的数据> .section .bss <未初始化的数据> .section .text .globl _start _start: <汇编代码> 建立汇编代码: 例子: .text .glo 阅读全文
摘要:
1. 安装centos7,启动图像化界面。 参考:https://blog.csdn.net/qq_23014435/article/details/74347925 # systemctl get-default //获取当前系统启动模式 更改模式命令:systemctl set-default 阅读全文
摘要:
#!/bin/bash## Copyright (c) 2014-2015 Michael Dichirico (https://github.com/mdichirico)# This software/script is released under the terms of the MIT l 阅读全文