0% found this document useful (0 votes)
4 views

CompOrgL4

This document outlines an experiment on the MTS-86C Instruction Set, focusing on loading simple assembly programs using the 8086 microprocessor. It provides an overview of 8086 assembly language, including its architecture, instruction set, and the necessary tools for programming such as assemblers and linkers. The procedure details the steps to input machine code into the MTS-86C Trainer Kit and execute the program, concluding with an explanation of the assembly code used.

Uploaded by

shrekisheart
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

CompOrgL4

This document outlines an experiment on the MTS-86C Instruction Set, focusing on loading simple assembly programs using the 8086 microprocessor. It provides an overview of 8086 assembly language, including its architecture, instruction set, and the necessary tools for programming such as assemblers and linkers. The procedure details the steps to input machine code into the MTS-86C Trainer Kit and execute the program, concluding with an explanation of the assembly code used.

Uploaded by

shrekisheart
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

04

CompOrgALAB
Computer Organization
and Architecture

Group # : ____________________ Date: __________________


Rating: _________________

Members

Experiment #4:
MTS-86C Instruction Set
I. Learning Outcomes:
At the end of this laboratory experiment, the students should be able to:
a) load simple assembly program in the kit.

II. Materials:

MTS-86C Trainer Kit

III. Overview:

8086 Assembly Language

8086 assembly language is a low-level programming language that is specific to


the 8086 microprocessor. It is used to write programs that control the 8086
directly, giving the programmer complete control over the hardware.

Assembly language is written using mnemonics, which are short abbreviations for
machine code instructions. For example, the mnemonic MOV is used to move
data from one location to another.

To write an assembly language program, you will need to use an assembler. An


assembler is a program that converts assembly language code into machine
code that the 8086 can understand.

Once you have written your assembly language program, you will need to link it
with a linker. A linker is a program that combines your assembled code with other
libraries and object files to create an executable program.

Once your program is linked, you can run it on an 8086 microprocessor.

8086 microprocessor

The 8086 has a 16-bit architecture, meaning that it can process 16 bits of data at
a time. The 8086 also has 16 general-purpose registers, which can be used to
store data and temporary results.

The 8086 instruction set consists of over 200 different instructions. These
instructions can be divided into the following categories:
1
Data transfer instructions: These instructions move data between registers and
memory.
Arithmetic instructions: These instructions perform arithmetic operations on
data.
Bit manipulation instructions: These instructions manipulate individual bits in
data.
String instructions: These instructions operate on strings of data.
Program execution transfer instructions: These instructions control the flow of
execution of a program.
Processor control instructions: These instructions control the operation of the
processor itself.

IV. Procedure

1. Download the Program by MTS-86C Keypad. You can input the machine code
directly to the specified memory address by using the MTS-86C Keypad. To do this,
you must scribe the machine code first.

2. Rearrange the machine code so that they can be saved to a specified memory
in MTS-86C. Note that if the code length is 2 bytes, put the lower byte first.
Complete the table below:
BC 00 40 B0 90

3. Turn on the power of MTS-86C and follow the steps to input the machine code
at address 0100:0000.
steps Key steps Key steps Key
1 RESET 8 , 15 4
2 0 9 B 16 0
3 1 10 C 17 ,
4 0 11 , 18 B
5 0 12 0 19 0
6 : 13 0 20 ,
7 0 14 , 21 9
Complete the table:
steps Key
22
23
24
25
26

56 .

2
4. Execute the program located at 0100:0000 using GO command.

steps Key
1 RESET
2 2
3 1
4 0
5 0
6 :
7 0
8 .

V. Conclusion. Explain what the assembly code is for.

You might also like