Sunday, July 26, 2009

Borland turbo assembler problem?

I downloaded the following:





tasm.exe


tlink.exe


rtm.exe


td.exe


tlib.exe





i created a new folder and when i try to do the following :





tasm /zi/l/c pgm1





i get this message:





C:\41%26gt;tasm /zi/l/c pgm1


'tasm' is not recognized as an internal or external command,


operable program or batch file.





C:\41%26gt;





what gives???

Borland turbo assembler problem?
Which folder did you install Turbo Assembler to? The problem is that the folder that you used to store Turbo Assembler is not part of the "path" that Windows uses to look for executables (including batch files). That is, there is a system variable called Path that Windows uses whenever you type in a command at the DOS prompt.





From the DOS prompt, if you type PATH and hit the Enter key, you'll see something like:


c:\41%26gt;PATH


PATH=C:\WINDOWS\system32;C:\WINDOWS;


Each folder along the path, which are separated by semicolons, is searched whenever you try to run a DOS command or executable.





There are two ways around this:


1) Include the full path name when you execute tasm. For example, if you stored your Turbo Assembler files in C:\TA, then you could type:


C:\41%26gt;c:\ta\tasm /zi/l/c pgm1





2) Best way, though, is to add the Turbo Assembler folder to the Path. Right-click on My Computer, click the Advanced tab, click the button at the bottom labeled Environment Variables. Scroll through the bottom list box, labeled System Variables, until you see Path. Highlight that row and click the Edit button. Add a semicolon at the end of the current path, then add your Turbo Assembler folder after that. Click OK three times and re-open a new DOS window. Now Windows will be able to find tasm when you type it in the DOS window.





Keep in mind that you may also need to add other environment variables for Turbo Assembler; if so, follow the same steps above to add the ones you need.

daylily

No comments:

Post a Comment