| Finding the Turbo Assembler |   |
![]() |
|
![]() |
This will open up a DOS window to the H:\ drive. |
Assembling Your Program |
  |
|
  |
![]() |
  |
Assuming you had no errors, type tlink filename at the command prompt and press <Enter>. This will create an executable file in your current directory with the same name as your assembly file. Note:
|
  |
![]() |
  |
If everything went well, you are now ready to run your program. Simply type filename at the DOS prompt and press <Enter>. Your output should appear on the screen. |
  |
![]() |
  |
Printing Your Output
There are two different ways to print your output:
Be sure to choose the method preferred by your instructor.
Redirecting Output
To redirect your program's output to a file, simply type the executable file name followed by a "greater than" sign and a filename, then press <Enter>. Your program's output will be written to the file you specified. Then, simply open that file using Notepad and print the file (directions on opening Notepad can be found near the bottom of this page).

Capturing Screen Images
After running your program and seeing the output in the DOS window, you must capture the contents of the screen:
1. Click on the MS-DOS icon in the menu bar (in the top-left corner of the DOS window).
2. In the pull-down menu, move down until Edit is highlighted, then select Mark.

3. Click on the flashing cursor in the top-left corner of the text screen.
4. While holding down the mouse button, highlight the text in the window by dragging
the mouse pointer to the bottom-right corner of the text window.

With the output highlighted, press <Enter>. This copies the contents of the
window into the "clipboard", a temporary memory space in Windows.
Now you must "paste" the information from the clipboard into a document
using Notepad:
The output from the DOS window should now be displayed in the Notepad document. Now merely print the document and you're done!