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.

c and asm combined in keil

Status
Not open for further replies.

grittinjames

Advanced Member level 1
Joined
Jun 1, 2006
Messages
479
Helped
44
Reputation
90
Reaction score
32
Trophy points
1,308
Location
bangalore india
Activity points
3,985
keil __asm

when im writting program c and asm combined for 8051 it showing error memory overlaped
plz some one send me one small example program which used c and assemly together
 

__asm keil

#include<stdio.h>
#include<reg51.h>

void main() {

unsigned int a,b;

#define ABLOCK __asm { /* comment */
__asm mov R5,#0x10 \
__asm l1: mov rl4,#'}' \
__asm mov R6,R5 \
__asm jnbs R6.2,l1 \
}
printf("hope this helps you... :)");

}
 

keil _asm

hai
here we r including some some asm instruction seperatly.
but i want a seperate file for asm.
in that only asm instructions will be there.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top