KEIL中编译汇编程序出现警告,如何处理?
源程序如下:ORG0000HLJMPMAINORG0030HMAIN:MOVR0,#10HMOVR1,#30HMOVA,#00HLOOP:MOV@R1,AINCR1INC...
源程序如下:
ORG 0000H
LJMP MAIN
ORG 0030H
MAIN:MOV R0,#10H
MOV R1,#30H
MOV A,#00H
LOOP:MOV @R1,A
INC R1
INC A
DJNZ R0,LOOP
SJMP $
END
出错信息如下:
Build target 'Target 1'
assembling protues_exp1.asm...
assembling STARTUP.A51...
linking...
*** WARNING L5: CODE SPACE MEMORY OVERLAP
FROM: 0000H
TO: 003CH
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: ?C_START
MODULE: STARTUP.obj (?C_STARTUP)
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: ?C_START
MODULE: STARTUP.obj (?C_STARTUP)
ADDRESS: 0047H
Program Size: data=9.0 xdata=0 code=76
creating hex file from "protues_exp1"...
"protues_exp1" - 0 Error(s), 3 Warning(s).
请不要告诉我删除startup.a51。删除该程序警告虽然消除了,但运行结果是错误的。 展开
ORG 0000H
LJMP MAIN
ORG 0030H
MAIN:MOV R0,#10H
MOV R1,#30H
MOV A,#00H
LOOP:MOV @R1,A
INC R1
INC A
DJNZ R0,LOOP
SJMP $
END
出错信息如下:
Build target 'Target 1'
assembling protues_exp1.asm...
assembling STARTUP.A51...
linking...
*** WARNING L5: CODE SPACE MEMORY OVERLAP
FROM: 0000H
TO: 003CH
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: ?C_START
MODULE: STARTUP.obj (?C_STARTUP)
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: ?C_START
MODULE: STARTUP.obj (?C_STARTUP)
ADDRESS: 0047H
Program Size: data=9.0 xdata=0 code=76
creating hex file from "protues_exp1"...
"protues_exp1" - 0 Error(s), 3 Warning(s).
请不要告诉我删除startup.a51。删除该程序警告虽然消除了,但运行结果是错误的。 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询