Professional Documents
Culture Documents
Experiment No. 2 Name: Varun Thakur Uid:19bel1026 Subject Name
Experiment No. 2 Name: Varun Thakur Uid:19bel1026 Subject Name
2
Name: Varun Thakur Uid:19bel1026
Subject name:
MICROPROCESSORS AND MICROCONTROLLER LABORATORY
Subject code: ELP-355
Date of Exp:24-02-2022 Date of Submission:24-02-2022
3. Computers I3 Processor, 2 GB 20
RAM,40 GB Hard
Disk
PROGRAM:
simulaXon
Observation:
INPU OUTPU
T T
3000 05 3002 02
H H
3001 03 3003 00
H H
B.SubtracXon of two 16-Bit Numbers. (Display of Borrow)
Memory Lab Mnemonic Hex Comment
address el s Cod s
e
850 MVI C,00 0E C = 00H
0
850 00
1
850 LHL 8000 2A L – 1st No.
2 D
850 00
3
850 80
4
850 XLH EB HL – DE
5 G
850 LHL 8002 2A HL – 2nd No.
6 D
850 02
7
850 80
8
850 MO A,E 7B LSB of ‘1’ to
9 V ‘A’
850 SUB L 95 A–A–L
A
850 STA 8004 32 A – memory
B
850 04
C
850 80
D
850 MO A,D 7A MSB of 1 to
E V A
850 SBB H 9C A- A – H
F
851 STA 800 32 A – memory
0 5
851 05
1
851 80
2
851 HLT 76 Stop
3 execu:on
Simulation part of 16 bit
Precautions:
Make sure that all the machine codes are entered correctly in the
microprocessor.