DevPinoy.org
A Filipino Developers Community

>>> First two to make 3 wins! <<<

How to compile masm32 v9

rated by 0 users
This post has 4 Replies | 1 Follower

Top 500 Contributor
Posts 2
Points 40
Neo_d_one Posted: 04-12-2007 12:46 AM
Hello guys...I'm new here..I have just installed masm32 v9 on my machine..I am not new in assembly language. I am using TASM..I would like to ask how can I assemble  my code in masm32?? can someone tell me how to assemble my code..


  • | Post Points: 20
Top 10 Contributor
Posts 744
Points 10,060
Hi there!

Quick and Easy Way: Use QEditor (MASM32 Editor) then there you'll automatic assembly and linking for the source. You can also do this using the WinASM Studio IDE (which I suggest you get).

Or, you can do it at the commandline by using ML [ /options ] filelist [ /link linkoptions ]. For more information about the options and other stuff, you can checkout the masm32.hlp file under the c:\masm32\help\ directory. Almost everything you need is in there.

If you have any more questions, don't hesitate to post. We'll try our best to answer them.

Regards,
m0ds

Top 500 Contributor
Posts 2
Points 40
Ok thanks modchip...Now I know..I am not used to the MASM32
editor because in TASM I always use the command line to compile my code.


  • | Post Points: 20
Top 200 Contributor
Posts 4
Points 165

Hello,

 You can also use a batch file for compiling your code.  Below is a simple example.

@echo off
\masm32\bin\ml /c /coff filename.asm
\masm32\bin\link /subsystem:console filename.obj
pause

 regards,

MrBogus 

  • | Post Points: 20
Top 10 Contributor
Posts 744
Points 10,060

I'd like to add, for gui apps:

\masm32\bin\rc filename.rc
\masm32\bin\ml /c /coff filename.asm
\masm32\bin\link /SUBSYSTEM:WINDOWS /LIBPATH:c:\masm32\lib filename.obj filename.res

Hi MrBogus, nice to see you here! :D 

Page 1 of 1 (5 items) | RSS

Copyright DevPinoy 2005-2008