8086 Microprocessor Lab Manual - 01
8086 Microprocessor Lab Manual - 01
Experiment No. 01: Familiarization with MDA-8086 microprocessor kit and its
operation in “Machine Code” mode using arithmetic instructions.
Objectives:
1. To familiarize with MDA-8086 system configuration.
2. To operate MDA-8086 in “Machine Code” mode.
Configuration:
Prepared by
Jibesh Kanti Saha
EEE-334 Experiment-1
8086 mapping:
Prepared by
Jibesh Kanti Saha
EEE-334 Experiment-1
Function of Keys:
Prepared by
Jibesh Kanti Saha
EEE-334 Experiment-1
Arithmetic Instructions:
Arithmetic instructions include ADD, SUB, SBB, INC, MUL, DIV etc.
mnemonics. Their operations were explained in theory class and can be
found in the reference book.
Prepared by
Jibesh Kanti Saha
EEE-334 Experiment-1
Prepared by
Jibesh Kanti Saha
EEE-334 Experiment-1
Find the Contents of AX, BX, DX, IP and Flag registers after each step and put
them in a tabular form.
Explain operations of Arithmetic instructions and verify using your own
calculation.
Explain the changes in the flag bits.
Procedure:
1. Write the assembly code (ASM code) in emulator (emu8086).
2. Save the file as ****.asm in the same folder where MASM execution is
present.
3. Open the MASM.exe.
4. MASM.exe is used create ****.LST and ****.OBJ files form ****.ASM file.
5. If there are errors or warnings of any kind, then ****.OBJ file will not be
generated.
6. The ****.LST file will show the desired MACHINE codes for any writtem ASM
codes. The machine codes found are to be typed via keyboard (input device)
of the MDA-8086 microprocessor trainer kit.
7. To go to address of a memory location press AD key. This command key
allows the user to set the 20 bit address of a memory location in the format
of [Segment:Offset].
8. To enter to the offset part we have to press the : key.
Prepared by
Jibesh Kanti Saha
EEE-334 Experiment-1
9. For exchanging the 8-bit data on a specific memory location press DA key.
10.When all data are in specific memory location press the RESET button.
11. Press STP (single step: this key allows executing one instruction at a time)
and + (increment by one: this key allows moving to the next memory location)
to see the step by step execution of the ASM code on the LCD unit.
12. Use REG and +,- to check the values of different register.
13. To execute the program fully press AD, : and then GO.
Prepared by
Jibesh Kanti Saha