DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Assembly (http://www.daniweb.com/forums/forum125.html)
-   -   Make it work in XP (http://www.daniweb.com/forums/thread32252.html)

kraid Sep 13th, 2005 5:20 pm
Make it work in XP
 
I just started with TASM 5.0, and I have a question.
Is there a way to assemble the exe so I can use it in windows XP?
I write TASM myproject.asm
then TLINK myproject
thats how I was told to do, but I cant run it in XP
how should I assemble to make it work in XP?
Im using TASM 5.0

or are you all programmin in windows 9x? O.o

Tight_Coder_Ex Nov 13th, 2005 12:57 pm
Re: Make it work in XP
 
I've never used TASM, but maybe this might help steer you in the right direction.

In NASM I must compile "NASMW -fwin32 sourcefile". Note -fwin32, this tells the compiler which platform I intend to compile application for.

then "link /entry:Main /machine:ix86 ......", this tell the linker the entry point and what type of machine I intend on running it on.

So check you compiler and linker options to make sure you are using the correct ones so your PE header is created properly for the windows platform.

Ancient Dragon Nov 21st, 2005 7:48 pm
Re: Make it work in XP
 
TASM 5.0 is a MS-DOS 6.X and earlier 16-bit assembler and will not assemble 32-bit code that is needed for MS-Windows.

Ital_Stew Oct 13th, 2006 11:22 pm
Re: Make it work in XP
 
Quote:

Originally Posted by kraid (Post 160489)
I just started with TASM 5.0, and I have a question.
Is there a way to assemble the exe so I can use it in windows XP?
I write TASM myproject.asm
then TLINK myproject
thats how I was told to do, but I cant run it in XP
how should I assemble to make it work in XP?
Im using TASM 5.0

or are you all programmin in windows 9x? O.o


I was having a similar problem. What I did was use a text editor to write the .asm code as well as a DOS batch file with the command line directives. I then placed those files in the BIN folder of TASM. Open the command line prompt, navigate to the BIN folder (where you'll find TASM32.EXE) and enter:

tasm32 <name of the .bat file>.bat

If the code has no errors then you just type the name of the .asm file without the extension.

condor666 Oct 21st, 2006 6:06 am
Re: Make it work in XP
 
I think you should try WinASM who includes Masm, WinASM is a complete IDE to develop assembler. You'll find it here :
http://www.winasm.net/


All times are GMT -4. The time now is 1:07 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC