The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: escudo825 on August 21, 2006, 11:27:19 PM

Title: a user manual for masm32?
Post by: escudo825 on August 21, 2006, 11:27:19 PM
off and on for the last few months I've been trying to figure out assmbly. but there was one small problem. I couldn't figure out how to assemble and run the program. I have programmed for about 3 years, and this IDE just doesn't seem to cooperate like anything I've used before. am I missing something, and is there a guide out thre somewhere?

thanks to any that can help.
Title: Re: a user manual for masm32?
Post by: jbullard on August 22, 2006, 01:44:04 AM
I normally use a batch file something like this


#This will compile your asm project
c:\masm32\bin\ml /c /coff /Cp program.asm

#This will compile your resource file
c:\masm32\bin\rc /v rsrc.rc
c:\masm32\bin\cvtres /machine:ix86 rsrc.res

#This will link your program and resource file
c:\masm32\bin\link /SUBSYSTEM:WINDOWS program.obj rsrc.obj

#Or if you don't have a resource file
c:\masm32\bin\link /SUBSYSTEMLWINDOWS /LIBPATH:c:\masm32\lib program.obj



pause
del *.obj



If you take a look in the examples folder and icztutes folder in masm32 you will see that they have a makeit.bat file included with all of the tutorials.

HTH,
Jason
Title: Re: a user manual for masm32?
Post by: raymond on August 22, 2006, 02:09:58 AM
escudo825

Are you using the MASM32 package and the included QEditor?

If you are, its as simple as writing your source code, then after saving it, click on "Project" tab. If you are assembling a GUI app, select the "Assemble & Link" if you are not using any resource file, or "Build All" if you are.

If your program is a Console application, select one of the "Console" options as above.

You only need to write a batch file if you want to use special features of the assembler and linker.

Then, if your program got assembled without error, choose the "Run Program" option under the same tab, or double click the .exe from your desktop listing as you would for any other program.

Raymond
Title: Re: a user manual for masm32?
Post by: escudo825 on August 22, 2006, 06:02:56 AM
okay I'll try that and see if it helps, it's still alittle more then clicking a "compile and run" button.
Title: Re: a user manual for masm32?
Post by: ToutEnMasm on August 22, 2006, 07:12:20 AM
Hello,
I you have problems with building an environnement,see
http://www.manoscoder.gr/mbbs/forums/thread-view.asp?tid=16&posts=4&start=1
                ToutEnMasm
Title: Re: a user manual for masm32?
Post by: drizz on August 22, 2006, 01:21:37 PM
escudo825. i recommend you try Radasm.
Title: Re: a user manual for masm32?
Post by: w0lfshad3 on August 22, 2006, 02:54:20 PM
check these out:

http://webster.cs.ucr.edu/Page_TechDocs/MASMDoc/ProgrammersGuide/

http://web.sau.edu/LillisKevinM/csci240/masmdocs/#MASM%20Reference%20Guide

http://www.ray.masmcode.com/tutorial/index.html

http://www.arl.wustl.edu/~lockwood/class/cs306/books/artofasm/toc.html

Title: Re: a user manual for masm32?
Post by: w0lfshad3 on August 23, 2006, 06:15:24 AM
and this:

http://webster.cs.ucr.edu/Page_TechDocs/MASMDoc/index.html

i'm sure google has more to offer tough