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

Cookies are required to use this site. You must accept them to continue using the site. Learn more…