.section .data
初始化的数据
.section .bss
未初始化的数据
.section .text
.global _start
_start:
汇编代码
//Makefile
all:start.o
arm-linux-ld -Ttext 0x30000000 -o start.elf $^
%.o :%.S
arm-linux-gcc -g -o $@ $^ -c
clean:
rm *.o *.elf
.text
.global _start
_start:
mov r1,#1
mov r2,#2
mov r3,#3
ARM指令分类
ARM伪指令
协处理器访问指令
CP15提供了16组寄存器。