5 - Turbo Assembler
5 - Turbo Assembler
Experiment 05
Assembling, Linking, and Executing Programs
EDIT.COM is MS-DOS’s text editor If you typed the program without any
used for creating batch files and small errors the screen should display the
text documents. In this activity and for following:
the rest of the course, we will use EDIT
to create the source code for our assembly C:\> tasm clear.asm
language programs. Turbo Assembler Version .01
Copyright (c) 1988, 1990 Borland
The figure below shows EDIT window International
Having assembled and linked the 6. Press the Enter key. Note what
program, you can now execute it. You happens when you execute the
can run the program by entering its file program.
name and pressing Enter.
IV. Observation
C:\> clear After performing the procedures, I
noticed that when I executed the exer01
III. Procedures program, the previous prompts I entered
were cleared. It is similar to the “cls”
1. Run the text editor by typing EDIT at command of DOS where it will erase all
the DOS prompt and pressing the the commands and any output they
enter key. generate in the screen or console window.
With this, I am able to obtain an idea
of how to program an instruction similar
to those in MS-DOS.
V. Conclusion
At the end of this activity, I learned
how to use the DOS EDIT.COM to create
language source codes and use the Turbo
Assembler and Turbo Linker to link them
and assemble an assembly language
program.
Also, this experiment guided me to
create and execute an assembly language
program similar to the “cls” instruction of
MS-DOS, which it will clear all the
previously entered commands and output
in the console window.
Documentation
NAME DATE REMARKS
Experiment 06
Printing a Single Character
JILLIAN
Experiment 07
Entering a Single Character
I. Objective
DOS Service 08h can be used for
After performing this activity, you programs that require hiding the input
(such as password protection used in
should be able to
programs).
1. Accept input from the keyboard
using interrupts. III. Procedures