News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

a user manual for masm32?

Started by escudo825, August 21, 2006, 11:27:19 PM

Previous topic - Next topic

escudo825

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.

jbullard

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

raymond

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
When you assume something, you risk being wrong half the time
http://www.ray.masmcode.com

escudo825

okay I'll try that and see if it helps, it's still alittle more then clicking a "compile and run" button.

ToutEnMasm

#4
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

drizz

escudo825. i recommend you try Radasm.
The truth cannot be learned ... it can only be recognized.


w0lfshad3