CompOrgL4
CompOrgL4
CompOrgALAB
Computer Organization
and Architecture
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:
III. Overview:
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.
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.
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 .