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

ASM

How to use ASM into C code compiled by µVision ?

Parents
  • 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'

Reply
  • 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'

Children