IT0047 Activity 1 Intro To TASM
IT0047 Activity 1 Intro To TASM
IT0047 Activity 1 Intro To TASM
IT0047
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
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.
1.5 Materials/Equipment
Figure 1. Title
1.7 Procedure/s
1. Write the following program using SK’s notepad as your text editor using the filename
sam1.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 sam1.asm
4. If there are warnings and errors in the assembling process go back to the source code and
fix those errors. If no error occurs, proceed to the next step.
6. Execute the program by simply typing the filename on the prompt. What is the output of
the given program?
________________________________________
1. Given the sample output coming from your instructor, write down and compile the
required program that will provide the expected sample output using expt2.asm as the
filename.
2. Encode the program. (copy and paste the program code here)
1. What is the difference between the ESC and CTRL+ALT when moving from SK to DOS.
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
1.8.2 Calculations
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
1.8.4 Conclusion/s
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
Criteria Grade
Total Score