Turbo Assembler (TASM)

Turbo Assembler (TASM)

Turbo Assembler (TASM) is a computer assembler (software for program development) developed by Borland which runs on and produces code for 16- or 32-bit x86 MS-DOS or Microsoft Windows. It can be used with Borland's high-level language compilers, such as Turbo Pascal, Turbo Basic, Turbo C and Turbo C++. The Turbo Assembler package is bundled with the Turbo Linker, and is interoperable with the Turbo Debugger. TASM can assemble Microsoft Macro Assembler (MASM) source using its MASM mode and has an ideal mode with a few enhancements. Object-Oriented programming has been supported since version 3.0. The last version of Turbo Assembler is 5.4, with files dated 1996 and patches up to 2010; it is still supplied with Delphi and C++Builder.

HOW TO INSTALL TASM ??




How to use the Turbo Assembler tools to assemble, link, and debug

(Assume that your program is called "proj.asm")
1. Open an MSDOS window.

2. Set the PATH so that the TASM programs are available

The TASM programs are on the C drive; set the path so that DOS can find them. This only needs to be done once each time you open an MSDOS prompt.

set PATH=%PATH%;C:\TASM\BIN

3. Use a Text Editor to Edit the .ASM File

Create your file using one of the following programs:

notepad proj.asm

wordpad proj.asm

edit proj.asm

Make sure it has an .ASM ending. Also, be sure you are doing your work on the A: drive, not in the C:\WINDOWS directory.

4. Compile the source code to create an object module.

tasm/z/zi proj.asm

The /z switch causes TASM to display the lines that generate compilation errors. The /zi switch enables information needed by the debugger to be included in the .OBJ file.

Note that you should use "real mode" assembler, TASM.EXE. Do not use the "protected mode" assembler TASM32.EXE for the assignments that will be given in class.

5. Run the Linker to generate an .EXE file from the .OBJ file

tlink/v proj

6. Run the Program

Your final program (if there were no errors in the previous step) will have an .EXE ending. To just run it, type:

proj

If you want to use the debugger to examine the instructions, registers, etc., type:

td proj

This brings up the regular full-screen version of the Turbo debugger. *IMPORTANT* if "quick edit" is enabled for your DOS window, the mouse will not work with the Turbo debugger!!!

1 Comments

  1. I have no choice but to dual bot my PC. I just install Windows 7 , 32 bit.

    ReplyDelete

Post a Comment

Previous Post Next Post