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

Inline Assembly from an assembly file into a C++ function

Hi,

I need to :

1. Inline an assembly code that modifies Stack pointer directly (__asm directive is not allowed to modify stack pointer) in a C++ file.

What is the best option? A function call to a label is not an option since I need to manually update Stack Pointer. I need to inline.

I read I can create SRC file. Can I create SRC from the C++ compiler ? if so what is the Directive/Flag? --SRC didn't work.

#prama asm was unrecognized pragma. perhaps because I'm not creating SRC.

Thanks.

Parents Reply Children