User:AbdulHaseeb 4

Working on TASM by Command Prompt

1)	First open TASM/BIN in Command Prompt. e.g. C:\> CD TASM\BIN		Enter C:\TASM\BIN>

2)	To create new file write EDIT e.g. C:\TASM\BIN>EDIT		Enter EDIT program open If file is already present then write EDIT FILE_NAME.ASM to edit file. e.g. C:\TASM\BIN>EDIT PROG.ASM FILE_NAME.ASM opens in EDIT program. Note save file with extension .ASM and exit EDIT window after completing program to return back to Command Prompt.

3) Now write TASM FILE_NAME.ASM This make .OBJ File e.g. C:\TASM\BIN>TASM PROG.ASM		Enter This command creates PROG.OBJ File.

4) Now write TLINK FILE_NAME.OBJ This makes .EXE and MAP File e.g. C:\TASM\BIN>TLINK PROG.OBJ		Enter This command creates PROG.EXE and PROG.MAP (or application file).

5) Now execute program by typing FILE_NAME.EXE e.g. C:\TASM\BIN> PROG.EXE		Enter This executes the program on Command Prompt.

6) Making listing file To make .LST (Listing) file type TASM/L FILE_NAME.ASM. e.g. C:\TASM\BIN> TASM/L PROG.ASM 		Enter This make .lst file with symbol

To make listing file without symbol type TASM/L/N FILE_NAME.ASM e.g. C:\TASM\BIN> TASM/L/N PROG.ASM 		Enter This make .lst file without symbol

If we want to see error message in source code then type 			TASM/L/N/Z FILE_NAME.ASM e.g. C:\TASM\BIN> TASM/L/N/Z PROG.ASM 		Enter Now .lst (Listing file) shows the error message present in the source code. Note: to view .LST (Listing) file type FILE_NAME.LST e.g. C:\TASM\BIN> PROG.LST 		Enter This open .LST file on Note pad. 7) Running Turbo Debugger To check program line by line Turbo Debugger is used. After executing command TLINK (which make .EXE file) we can run Turbo Debugger by typing   	       TD FILE_NAME.EXE e.g. C:\TASM\BIN> TD PROG.EXE 		Enter	This opens our program on Turbo Debugger window. Note: to view data segment register go on View>>Dump

TASM Working Help