??? 08/24/07 07:10 Read: times Msg Score: -1 -1 Answer is Wrong |
#143575 - ASM instructions in C Responding to: ???'s previous message |
one simplest way is to use #pragma ASM and #pragma ENDASM.
For instance on a kiel compiler: /* ............ C code here... ........... */ #pragma ASM /* ........ assembly code here ........ */ #pragma ENDASM /* ............ C code here... ........... */ But this code needs to be converted into .a51 file before creating a hex file. In Keil this can be done by setting the target options. Refer to the keil assembler manual for this. regards, sarma |