无题我要加汇编内容就在STARTUP。S里加?
我建了个S文件,象C文件一样加入工程,但编译不过去。
COUNT EQU 0X40003100
AREA __main,CODE,READONLY
ENTRY
CODE32
; ORG 0x01000
START EQU 0x00000100
LDR R1,=COUNT
MOV R0,#0
STR R0,[R1]
LOOP LDR R1,=COUNT
LDR R0,[R1]
ADD R0,R0,#1
CMP R0,#10
MOVHS R0,#0
STR R0,[R1]
B LOOP
END
1.axf: Warning: L6665W: Neither Lib$$Request$$ARMlib Lib$$Request$$cpplib defined, not searching ARM libraries.
1.axf: Error: L6218E: Undefined symbol __main (referred from startup.o).
1.axf: Error: L6218E: Undefined symbol __use_two_region_memory (referred from startup |