How to use ASM into C code compiled by µVision ?
Read the descriptions of ASM, ENDASM, and SRC in the C51 Manual - they include examples. But before this, ask yourself why you want to do such a thing. It is very often an ill-conceived notion. If you need to write assembly, then write an assembly source file and use the assembler to translate it - don't mess about bastardising your 'C'. There has been loads of discussion on this very recently - do a 'Search'
I have this error message: error C272: 'asm/endasm' requires src-control to be active Is there something to configure in the compiler for that?
I have this error message: error C272: 'asm/endasm' requires src-control to be active Is there something to configure in the compiler for that? Yes, but do not worry about it. Make your assembly in a separate .A51 module and link it in. ifg you need assembler use assembler, if you do not, use whatever you like. Combining the two in the same module is but a kluge. Erik
In fact, the project I have, compiles with another compiler but I'd to develop my program with Keil software, eg µVision. Can I send you the necessary ".c" & ".h" files in order to test the compilation on your computer? Thank's for advance
View all questions in Keil forum