0基础踏入嵌入式开发的第一坑!用无敌简简单单的C程序调用汇编程序实现整数相加,这辈子都有阴影了,这大概是一条一条指令谷歌百度搜出来的结果,学习从来没这么卑微过,唔QAQ
工程大概长这样:


add10.s
;routine for the addition of many integers.
;R0 is the counter of the loop.
;R2 is the pointer of array element. R3 is the value of array element pointed by R2.
;R4 is the low word of the sum,and R5 is the high word.
;N EQU 10
AREA addEX01,CODE,READONLY
ENTRY
EXPORT add10
add10
;MOV R0,#N
MOV R4,#0
MOV R5,#0
ADDS R4,#0
LDR R2,=adddata10
addloop01

















