in Search
     
Latest post 03-30-2008 6:01 PM by modchip. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 04-12-2007 12:46 AM

    • Neo_d_one
    • Top 500 Contributor
    • Joined on 04-12-2007
    • Posts 2
    • Points 40

    How to compile masm32 v9

    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
  • 04-12-2007 9:20 PM In reply to

    • modchip
    • Top 10 Contributor
    • Joined on 02-09-2006
    • Ivalice
    • Posts 710
    • Points 10,110

    Re: How to compile masm32 v9

    Answer
    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

    • Post Points: 20
  • 04-17-2007 5:05 AM In reply to

    • Neo_d_one
    • Top 500 Contributor
    • Joined on 04-12-2007
    • Posts 2
    • Points 40

    Re: How to compile masm32 v9

    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
  • 03-30-2008 9:29 AM In reply to

    • MrBogus
    • Top 200 Contributor
    • Joined on 03-30-2008
    • Posts 4
    • Points 165

    Re: How to compile masm32 v9

    Answer

    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
  • 03-30-2008 6:01 PM In reply to

    • modchip
    • Top 10 Contributor
    • Joined on 02-09-2006
    • Ivalice
    • Posts 710
    • Points 10,110

    Re: How to compile masm32 v9

    Answer

    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 

    • Post Points: 5
Page 1 of 1 (5 items)