hi, folks
i'm 100% newbie Win32ASM. I have downloaded MASM32 on my PC <win XP home edition>. from izcellioin page. Unforunately, something is went wrong. I'm using Quick editor for MASM editor, but can't run a program. I did read izcellion tuts...on that topic couldn't find an answer, also try to find a reference from AoA. nothing. Does MASM32 work on win XP? Do I need any addition files to my MASM?
any suggestion would be appretiated.
Thank you!!
i'm 100% newbie Win32ASM. I have downloaded MASM32 on my PC <win XP home edition>. from izcellioin page. Unforunately, something is went wrong. I'm using Quick editor for MASM editor, but can't run a program. I did read izcellion tuts...on that topic couldn't find an answer, also try to find a reference from AoA. nothing. Does MASM32 work on win XP? Do I need any addition files to my MASM?
any suggestion would be appretiated.
Thank you!!
What went wrong? did you get any kind of errors?
nope no kernel error. no erratic behavior. i was thinking that i had missed some .DLL or .lib files...when i had downloaded app. Not sure. it doesn't compile.
I'm confused to what you're talking about. But if a program was missing a required dll or lib it'd msgbox it to you when you tryed to run it. I'm unaware of masms installer dependancies but I doubt it's anything your system doesn't have. If you have masm installed fine then maybe you're talking about compiling an asm file? You can use the following batch file to assemble any .asm file anywhere on your system, just change szfile, to the name of the asm file you want to assemble and make sure szMasmPath is set to correctly
build.bat
----------------------------------------
(fyi I wrote this batch file in a couple seconds and didn't have time to test, should work fine though.)
build.bat
----------------------------------------
:MAKE
set szfile=minimum
set szMasmPath=C:\Masm32
%szMasmPath%\BIN\ML /c /coff /Cp %szfile%.asm
%szMasmPath%\BIN\link /SUBSYSTEM:WINDOWS /LIBPATH:%szMasmPath%\lib %szfile%.obj
DEL %szfile%.OBJ
ECHO.
PAUSE
CLS
(fyi I wrote this batch file in a couple seconds and didn't have time to test, should work fine though.)
If the code you're trying to build is in a directory with a space in it(for instance "C:\Documents and Settings\User\My Documents\blah.asm"), the batch files will fail as they are based upon old command prompt exection and the command line parser thinks you are trying to pass in arguments of "and" and "Settings\User\My" and "Documents\blah.asm", and so will fail.
It's easiest to make an asm directory in the root, rather than engineer a complicated set of build rules that'll strip out (or replace) spaced directory and file names.
If this is not the problem, you'll need to give a bit more of a hint than "it doesn't work", because we have no idea what error you are experiencing.
Mirno
It's easiest to make an asm directory in the root, rather than engineer a complicated set of build rules that'll strip out (or replace) spaced directory and file names.
If this is not the problem, you'll need to give a bit more of a hint than "it doesn't work", because we have no idea what error you are experiencing.
Mirno
thank you
i'll try do that! :D
i'll try do that! :D
hi, Mirno
compiler had difficulty of running a .bat file. Thanks to the Webring that posted .bat file.
compiler had difficulty of running a .bat file. Thanks to the Webring that posted .bat file.
Mirno you're wrong and right. First off I didn't intend for szfile to point to a long path then the asm file, I assumed the .bat would be run in same dir as the .asm file. None the less you still can run the .bat anywhere on your system and specify a long path to the asm file that contains spaces(without writing "a complicated set of build rules") just apply quotes
Also junior what do you mean "compiler had difficulty of running a .bat file" the compiler doesn't run the batch, your system does. The batch calls the compiler and specifies the options you want, and like Mirno said, give us the errors you're getting, I purposely put pause in the batch so you can see if it failed or succeeded.
:MAKE
set szfile="C:\Documents and Settings\User\My Documents\blah.asm"
set szMasmPath=C:\Masm32
%szMasmPath%\BIN\ML /c /coff /Cp %szfile%.asm
%szMasmPath%\BIN\link /SUBSYSTEM:WINDOWS /LIBPATH:%szMasmPath%\lib %szfile%.obj
DEL %szfile%.OBJ
ECHO.
PAUSE
CLS
Also junior what do you mean "compiler had difficulty of running a .bat file" the compiler doesn't run the batch, your system does. The batch calls the compiler and specifies the options you want, and like Mirno said, give us the errors you're getting, I purposely put pause in the batch so you can see if it failed or succeeded.
ok guys...i'll post on monday 05.23.05 thanks for help :)