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

assembly in c source code

I would like to know if the following syntax is possible:-

c source code.....
........
#pragma asm
assembly code .....
......
.....
#pragma endasm

c source code...
....

if this is not possible then what could be the other format to solve this.

  • Read the sections on the ASM/ENDASM and SRC directives, and Interfacing C Programs to Assembler (Chapter 6) in the C51 User's Guide (C51.pdf).

    All the manuals are accessible via the 'Books' tab in the uVision Project Window

    Search this forum, as this is a very Frequently Asked Question!