Microprocessors / MASM assembler and linker

Introduction

The purpose of this experiment is to use the MASM assembler and linker to convert your 80×86 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.

 

Click Order now to have a similar paper completed for you by our team of Experts.

Is this question part of your Assignment?

We can help

Our aim is to help you get A+ grades on your Coursework.

We handle assignments in a multiplicity of subject areas including Admission Essays, General Essays, Case Studies, Coursework, Dissertations, Editing, Research Papers, and Research proposals

Header Button Label: Get Started NowGet Started Header Button Label: View writing samplesView writing samples