Hey, I'm looking for a way to see my assembled code (not compiled, just a txt file where I could see the final code, before it gets converted to hex) I've been searching for a command line in masm32.hlp but couldn't find it...

Sorry if I'm not clear enough...
Posted on 2005-10-23 10:37:09 by Lenin
Tasm generates the so called "list file". I don't know wheter the masm does the same or not.
Posted on 2005-10-23 11:55:13 by ti_mo_n
You should be typing ml.exe /? instead of searching through that help file.

the flag you should be using is /Fl
Posted on 2005-10-23 12:25:19 by roticv
I'm afraid that's not exactly what I wanted... When I do that I get a file name test.lst with lot's of equates but not the actual code of my program... I wanted something like:

I type this in MASM:
.if variable == eax
    invoke MessageBox, hWnd, addr text, addr AppName, MB_OK

And get this outputed:
0x400001    cmp , eax
0x400002    jnz 0x400008
0x400003    push 0
0x400004    push 0x67de23 ; random offset (AppName)
0x400005    push 0x67fr4e2 ; random offset (text)
0x400006    push
0x400007    call MessageBox
0x400008    etc....

For debugging purposes...
Posted on 2005-10-23 13:07:30 by Lenin
You can try a tool like dumppe.exe from masm32\bin
Posted on 2005-10-23 13:33:15 by comrade
It should list everything including the code (it'll be tiny compared to all the equates and so is hard to find). There is a way of using directives inside the source to describe which sections should be listed or not, that way you can tell it not to list the include files there by avoiding all those equates, See this Masm Ref. on MSDN.
Posted on 2005-10-23 14:04:51 by Eóin

drv:\path\ml.exe /c /EP yourfile.asm > output.txt

This gives you the complete preprocessor output. To get the PE header and a disassembly, use DumpPE.
Posted on 2005-10-23 18:59:40 by hutch--
try this too:
\masm32\bin\link /DUMP /DISASM yourexe.obj > 1.asm
this gives disassembly with symbols.
Posted on 2005-10-23 20:03:08 by drizz
Thanks, that fit's perfectly :)
Posted on 2005-10-23 21:32:20 by Lenin