How do I call methods of C++ classes from asm?
Is it enough to externdef all the public class methods?
What about creating & destroying the object?
Posted on 2002-06-09 23:00:56 by grv575
I would suggest to make a very small C++ source file with a simple class and let the compiler generate a mixed listing file (with C++ and asm code lines). So you will be able to see what the compiler does with lines like "new myClass;" or "myClass::function1();"

As long as your ASM-code has a "this" pointer you can theoretically call any method, at least the public ones. But dont forget the "name decorations" of C++.
Posted on 2002-06-10 04:57:58 by japheth
you could also do as a lot of people do - write C wrappers for the
C++ code - these are a lot easier to figure out :). Or, imo the best
approach, call external asm stuff from your c++ modules.
Posted on 2002-06-10 08:06:36 by f0dder