in my application I have to combine - in the same C file - both C code and assembly code. how can I compile the file?
Refer to the following knowledgebase article. http://www.keil.com/support/docs/542.htm It talks about inline assembly with the C166 tools, but it works just the same with the C51 tools. Jon
Refer to the C51 User's Guide 03.2000: ASM/ENDASM - p12 SRC - pp 60, 144 Also the uVision2 Getting Started Guide 06.2000: p74: Specifying the SRC directive via the uVision interface, and assembling the resulting .SRC file; You can access the PDF versions of the manuals on the CD from the 'Books' tab in the uVision Project window Also see the thread ".LST and .M51 SFR mapping mismatches (uvision2 6.02 and 6.10)" http://www.keil.com/forum/msgpage.asp?MsgID=985
Use the parameter:#pragma src then you can get a assembler,after this you may make it to a OBJ file.