Mpi - Lab No - 2
Mpi - Lab No - 2
Lab outcomes:
After completing this lab, students will be able to;
Write machine code of Assembly or C program on 8086 using keypad
Run program stored in memory
See registers values and how each statement changes register values and Flag
register bits
Corresponding CLO and PLO:
CLO-1, PLO-5
Theory:
To write a program using keypad you need to translate the assembly language
program into machine language using compiler then manually enter machine code
on each memory location using DA button. To run the program, go back to
starting address by restarting then press STP key to execute one statement at time.
It is valid only when the display is in current Flag form. Pressing "STP" key
causes the CPU to execute one instruction point according to the user's PC. After
execution, the monitor regains control and displays the new PC and its contents.
The user may examine and modify registers and memory contents after each step.
Equipment:
MDA 8086 trainer board
Procedure:
KEY
segment
Midas 2109-5964/5
AD Seg. 0set data
0000 1000 B8
offset
1) MOV AX, 0
(Next address)
IP=1003 FL=0100
STP =...t......
LAB MANUAL Microprocessor Interfacing
AX=0000 BX=0000
CX=0000 DX=0000
+
STP
IP=1004 FL=0100
=...t......
3) ADD AX, 4789H
(Next address)
IP=1007 FL=0100
STP =...t......
Result verify !
AX=4789 BX=0000
+
CX=0000 DX=0000
LAB MANUAL Microprocessors and Microcontrollers
LAB TASK:
Write the Machine Code for the following addresses to show how the following will be
burnt(store) into the 8086 trainer Board after that briefly explain the steps for checking the stored
Data.
Observations:
Please write your observation after conducting this lab, you have to write in few lines, what
did you learn in this lab
LAB MANUAL Microprocessors and Microcontrollers
Rubrics
Absent Student is Student can Student has Student has Student
unable to understand followed constructed perfectly
follow the the provided instructions the implemented a
provided laboratory to construct functional/ working
instructions instructions the working model/ logic/
properly. and familiar fundamental schematic/ circuit/ block
The student with the lab schematic/ model/ block diagram/ code
can name the environment block diagram/ and
hardware or (Trainer/ diagram/ code, and successfully
Demonstration
simulation software/ code/ model have executed the
platform, but IDE), but on the successfully lab objective
unable to cannot protoboard/ executed the in Realtime or
implement implement trainer/ program/ run in a
anything on the simulation circuit on simulation
practically or platform software. software environment
on the practically or platform and produced
software on the the desired
software results
Category Ungraded Very Poor Poor Fair Good Excellent
Percentage [0] [1-20] [21-40] [41-60] [61-80] [81-100]
Marks 0.0 1-5 6 - 10 11- 15 16- 20 21 - 25.0
Date Total Marks Instructor’s Signature