Linking to C++
-
I have created a few procedures in assembly that I want to be C++ callable. I also want to be able to give arguments. I am using Masm as my assembler and Visual C++ as my compiler. I already know that I need to append a _ to my functions. I also seem to remember _pop_ing things off the stack for parameters, but I don't know for sure. An example is a procedure: _Out I want it to take a byte as one parameter and a word as the next, and then I want to be able to call it from a C++ program that it is somehow linked to. (I don't know how to do that either) How would I go about doing this? Thanks
-
I have created a few procedures in assembly that I want to be C++ callable. I also want to be able to give arguments. I am using Masm as my assembler and Visual C++ as my compiler. I already know that I need to append a _ to my functions. I also seem to remember _pop_ing things off the stack for parameters, but I don't know for sure. An example is a procedure: _Out I want it to take a byte as one parameter and a word as the next, and then I want to be able to call it from a C++ program that it is somehow linked to. (I don't know how to do that either) How would I go about doing this? Thanks