943,893 Members | Top Members by Rank

Ad:
  • Assembly Discussion Thread
  • Unsolved
  • Views: 6821
  • Assembly RSS
Sep 13th, 2005
0

Make it work in XP

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kraid is offline Offline
1 posts
since Sep 2005
Nov 13th, 2005
0

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.
Reputation Points: 47
Solved Threads: 17
Posting Whiz in Training
Tight_Coder_Ex is offline Offline
215 posts
since Feb 2005
Nov 21st, 2005
0

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.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,953 posts
since Aug 2005
Oct 13th, 2006
0

Re: Make it work in XP

Click to Expand / Collapse  Quote originally posted by kraid ...
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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Ital_Stew is offline Offline
1 posts
since Oct 2006
Oct 21st, 2006
0

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/
Reputation Points: 10
Solved Threads: 0
Newbie Poster
condor666 is offline Offline
2 posts
since Oct 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Assembly Forum Timeline: Super-optimization!
Next Thread in Assembly Forum Timeline: stopwatch code using mips (urgently neede)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC