News:

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

Re: MASM now on the Web!

Started by drhowarddrfine, June 08, 2006, 09:27:46 PM

Previous topic - Next topic

Acid The Great

Greetings everyone, so the only way to program in MASM is if I have some form of visual studios installed?  Is there a good tutorial on this?  Because i've had a very trying time with visual studios so far.

jj2007

I had installed VS Express on one machine, and had some trouble finding out how to get Masm running on another one without installing the full package there. Apparently, to run ml version 9.0, copying these files seems to be essential and sufficient:

\masm32\bin\link.exe
\masm32\bin\ml.exe
\masm32\bin\mspdb80.dll
\masm32\bin\msvcr90.dll
\masm32\bin\Microsoft.VC90.CRT.manifest   <-that one caused me some headaches, it's absolutely needed

No need to set or change any environment variables, as long as you use proper paths in your code:
include \masm32\include\masm32rt.inc

.code
start:
exit
end start

Igor

@jj2007
Are you sure that you are talking about version 9.0.30729.1?

jj2007

Quote from: Igor on March 26, 2009, 09:37:25 AM
@jj2007
Are you sure that you are talking about version 9.0.30729.1?

Microsoft (R) Macro Assembler Version 9.00.21022.08

Igor

Environment variables are needed for 9.0.30729.1.

Acid The Great

Just to be clear, what all does one need to program in MASM?

jj2007

Quote from: Igor on March 26, 2009, 11:31:32 AM
Environment variables are needed for 9.0.30729.1.

Hmmm.... it seems I was particularly lucky to get the last version that works without environment variables. :toothy

ToutEnMasm


Not difficult to sole this,there is a batch file with the vc++ express 2005,2008.
It is vsvars32.bat
And i you have the sdk,lib of the sdk are used but you can add a path to the lib of masm32

sample:
Quote
@echo on
REM uniquement des chemins dans la convention dos,utiliser chemin
REM /Zp[n] Set structure alignment
call C:\PROGRA~1\MICROS~1.0\Common7\Tools\vsvars32.bat

SET ML=/c /coff /Zp4
SET LINK=/SUBSYSTEM:WINDOWS
SET INCLUDE=%INCLUDE%;F:\masm32\sdk
REM ///////////////////////////////////////////////////////
SET ASM=minus
REM ///////////////////////////////////////////////////////

del *.pdb
del *.ilk
del *.obj
del *.exe
pause
rc /v %ASM%.rc
cvtres /machine:ix86 /OUT:%ASM%.bin %ASM%.res

ml %ASM%.asm

pause
Link  %ASM%.obj %ASM%.bin
endlocal
pause

FORTRANS

Quote from: Acid The Great on March 26, 2009, 03:24:00 PM
Just to be clear, what all does one need to program in MASM?

Hi,

   You basically need an editor to create your program.  Then you
need MASM to assemble your program.  Then a linker to create
an executable.  An IDE like Visual Studio can help to automate
things a bit, if that helps you.

Steve N.

Acid The Great

thanx, is there a tutorial on how to use masm in visual studio?

brethren

Quote from: Acid The Great on March 27, 2009, 02:36:14 AM
thanx, is there a tutorial on how to use masm in visual studio?

http://kipirvine.com/asm/

try the link "getting started with masm"

Mark Jones

Note, you might want to get MASM working from the command-line first, to verify things are installed properly. Then move to an IDE. This can save lots of time.

I.e., Install MASM32, add \masm32\bin to the PATH if you like (usually helps but is not required), then use a command prompt to browse to \masm32\examples\exampl01\minimum and run the build.bat file. It should assemble without error.
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08