Jump to content
Tuts 4 You

How To Compile Out Of Winasm To Masm Engine?


Recommended Posts

I like Winasm to do the editing of the asm file. Is there a way to have the text pass to MASM? The only way I've been doing it is save asm file within and reopening it in qeditor.

Its a pita, I've looked through the options but can't put a finger on how to pass the arguments to the program. I use the "build all" option to compile the file without issue and its easy

Any thoughts for an easier solution?


Link to comment

I'm not really sure I understood what you want to do (take a look at my flag and you'll understand...).

If you want to compile your assembly files you've written in WinAsm with the MASM compiler, you do not have to open it with any other editor. Just compile it inside WinAsm. If you entered the path to the compiler rigth and created a new assembly project inside WinAsm (which consists of a *.wap and a *.asm file), you can compile it in WinAsm...

I'd say you forgot to create a new project instead of creating a single *.asm file. So, just create a project (maybe with a template) and compile it.

You can also add you specific assembler and linker options to MASM. Create a project and check out the project settings.

Hope it was right I said... ;)


Edited by metr0
Link to comment

That is what I thought. Problem is that a new project needs creation everytime? MASM you can just launch the asm file and compile it right there. New project is what I'm trying to get around..........I guess that isn't a valid solution. Makes it messy...... :(


Link to comment
New project is what I'm trying to get around
Do you already got the "New Project Wizard Add-In" for your WinAsm ?

If not, give it a shot... :)

Edited by Ufo-Pu55y
Link to comment

I usually code in Notepad+ and use a .bat file to compile. That way I get to code with decent syntax highlighting without fussing around with projects etc. Running the batch file compiles it all up for me. I'm sure you could do the same with your IDE - if you're interested, the batch looks something like this (in your .asm directory, of course):

@echo off
if exist keygen.exe del keygen.exe
if exist keygen.obj del keygen.obj
if exist rsrc.res del rsrc.res
if exist rsrc.obj del rsrc.obj\masm32\bin\ml /c /coff keygen.asm
\masm32\bin\rc rsrc.rc
\masm32\bin\cvtres /machine:ix86 rsrc.res
\masm32\bin\Link /SUBSYSTEM:WINDOWS keygen.obj rsrc.objif exist keygen.obj del keygen.obj
if exist rsrc.obj del rsrc.obj
if exist rsrc.res del rsrc.res
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...