Hi,
I have written a program on 7 segment display interfacing. It will count from 0-9. These is a warning every time, I can't get where is the error. Moreover, I am burning the program into my AT89C51 IC, but it is not working as per program.
1. First, please have a look at my code and errors.
ORG 00H
S1: MOV P2,#0C0H
LCALL DLY
MOV P2,#0F9H
LCALL DLY
MOV P2,#0A4H
LCALL DLY
MOV P2,#0B0H
LCALL DLY
MOV P2,#99H
LCALL DLY
MOV P2,#92H
LCALL DLY
MOV P2,#82H
LCALL DLY
MOV P2,#0F8H
LCALL DLY
MOV P2,#80H
LCALL DLY
MOV P2,#90H
LCALL DLY
MOV P2,#7FH
LCALL DLY
LJMP S1
DLY: MOV R1,#20H
HERE: DJNZ R1,HERE
RET
END
And, the error is:
***WARNING L5: CODE SPACE MEMORY OVERLAP
FROM: 0000H
TO: 0002H
*** ERROR L104: MULTIPLE PUBLIC DEFINITIONS
SYMBOL: MAIN
MODULE: seven.obj (SEVEN)
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?MAIN?SEVEN
Program Size: data=30.1 xdata=0 code=1201
Target not created
Please tell me where am I wrong? I am beginner, so please guide me. Thanks
:?::?: