Activity 2: Introduction To Turbo Assembler 2.1 Program Outcomes (Pos) Addressed by The Activity
Activity 2: Introduction To Turbo Assembler 2.1 Program Outcomes (Pos) Addressed by The Activity
Activity 2: Introduction To Turbo Assembler 2.1 Program Outcomes (Pos) Addressed by The Activity
2. Translate the text file into machine language program using an assembler. If the
assembler finds errors, correct them with the text editor and reassemble the program.
3. Convert the assembler output to an executable run module using the loader.
5. Check the results. If they differ from what you expected, you must find the error or
bugs, that is, you must debug the program.
Text Editor
A text editor is a program that allows you to enter and prepare your program from
the ordinary keyboard into a computer readable form. It also allows you to save this file
into the disk for later use. The assembler and loader program require the inputs to be
saved files from the disk. A text editor can be any popular work processor or edit
program that can be produce pure ASCII text. As a standard convention, program written
in assembly language are usually given the filename with an extension of .ASM. This is
also the default filename extension that MASM searches.
Assembler
A program written in assembly language is translated to machine code by an
assembler. Assembler and the corresponding assembly language mnemonics are
generally limited to use with one particular microprocessor, which limits their portability,
or use on other machines. Today’s assembler do much more than translate assembly
language mnemonics into binary code.
Loader
Before the microprocessor can execute any machine instruction, it must first be
loaded into memory accessible to it. The loader is the program that actually takes the
machine instructions (object code) and places it in memory at the specified starting
address for execution. Loaders range from the very simple to the very complex.
2.5 Materials/Equipment
Figure 1. Title
2.7 Procedure/s
1. Write the following program using SK’s notepad as your text editor using the filename
sam2.asm
.model small
.code
org 100h
s:
mov ah,2
mov dl, ‘R’
int 21h
mov dl, ‘E’
int 21h
mov dl, ‘D’
int 21h
int 20h
end s
3. Go to the DOS prompt and then assemble the program by using the command below: H:\
[your subdirectory]>tasm sam2.asm
4. If there are warnings and errors in assembling process go back to the source code and fix
those errors. If no error occur proceed to the next step.
There should be no BAD OBJECT FILE message in the linking process, if bad
object file occur assemble the program once again.
RED
1. Write a program that will provide the expected sample output given below using
expt2.asm as the filename.
FEU Tech
ESC lets you go back while the CTRL + ALT lets you advance
2.8.3 Observations
-I observed that tlink and tasm are important commands to execute the program.
2.8.4 Conclusion/s
Criteria Grade
Total Score