Re: Printing from asm function



gtb <spamtrap@xxxxxxxxxx> wrote:

Might I now ask what are the idioms for printing register or memory
values?

If you are going to call your MASM code from C, you can just call printf.
If not, you can get the MASM distribution from www.masm32.com; he includes
a run-time library that has a lot of these functions.

Is there a way to see the actual code that MASM generates?

The /FAsc parameter to ml.exe gets you the maximum listing.

Can one run a debugger when running an asm function called from C/C++?

Sure. VC++ has a "disassembly" view that shows you each instruction.
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.

.