how to interface assembler code into c

Status
Not open for further replies.

sakthivenus

Newbie level 1
Joined
Nov 28, 2007
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,288
hi....i interface my assembler code into c....my code is
#include <REG51.h>

void sakthi();
void main() {
sakthi();
}
void sakthi( )
{
#pragma ASM
MOV A,R0
MOV R0,A
#pragma ENDASM
}
..but i get some warning messages like
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: 080AH
but i set "generate assembler SRC file and assemble SRC file"......what is this warning actually?......
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…