The purpose of this experiment is to use the masm assembler


The Intel Family of Microprocessors

James L. Antonakos

Lab #3: Assembling and Linking

Reference: Chapter 4

Introduction

The purpose of this experiment is to use the MASM assembler and linker to convert your 80x86 assembly language source files into executable code, such as .EXE and .COM files.

Procedure

1. This laboratory requires MASM 6.11 or later to be installed. If you are using a different assembler and linker, you must make whatever appropriate changes to the source files and command syntax as necessary.

2. Enter and save the following source file, called TEST.ASM. Save it in the root directory of drive C unless you have a different working directory for your files.

3. Open a DOS window and navigate to the directory where TEST.ASM is stored. If you saved TEST.ASM in the root of drive C, enter

C:

CD

to get to the root directory. If, for example, you saved TEST.ASM in the directory C:MYFILES, then use

C:

CD MYFILES

to get into the MYFILES directory.

4. Enter the following command to assemble and link TEST.ASM:

ML /Fl TEST.ASM

This will create TEST.LST (the list file), and TEST.EXE (the executable code). Important: After the /F is a little l, not the number 1. If you use a little f or a big L you will get an error.

5. Run the TEST.EXE program to verify it has been created. Submit the .LST file with your lab writeup.

6. Choose three programs from the book (they are available on the companion CD) and create EXE files from them. Execute the programs and describe the results.

7. Write a one-page summary of what you learned during the laboratory.

Solution Preview :

Prepared by a verified Expert
Programming Languages: The purpose of this experiment is to use the masm assembler
Reference No:- TGS01297229

Now Priced at $20 (50% Discount)

Recommended (97%)

Rated (4.9/5)