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

including asssembly instruction in c program

How to include a single or few assembly instructions in the c program without using function call?

Parents
  • I have used #pragma asm <assembly code> #pragma endasm
    but the c code following this is not running,what might be the problem?
    I want to include org 0x00 sjmp 0x30 org 0x30
    in the c program inorder to set the origin address of c program to 0x30.So i wanted to include assembly instructions in c program.Are there any other method of set the origin address of c program.

Reply
  • I have used #pragma asm <assembly code> #pragma endasm
    but the c code following this is not running,what might be the problem?
    I want to include org 0x00 sjmp 0x30 org 0x30
    in the c program inorder to set the origin address of c program to 0x30.So i wanted to include assembly instructions in c program.Are there any other method of set the origin address of c program.

Children
No data