Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top