This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

INLINE ASSEMBLY

hi

i want to use the assembly code in my c file
how can i do this
i refered the link below
but did not the clear idea

http://www.keil.com/support/man/docs/c51/c51_cm_srcfile.htm i gone through following step's
upto step 3 it is ok
but after that i can't get any thing
i used #pragma src at 1st line of my c file
#pragma asm
some asm code
#pragma endasm
help me

1.Create a C source file.

2.Add any required inline assembly instructions.

3.Compile using the SRC directive.

4.Rename the .SRC file so that it is not overwritten by subsequent compilations of the original C source (if required).

4.Make changes to the created assembler source file.

5.Assemble using the assembler.

0