MPD Practical File
MPD Practical File
Mnemonic
Opcode
(Hex)
01 00
qfRRTE-1
DAD B MVI B,
8DCR B B, Intel
RLC INR BINX BSTAX B LXI 16NOP AC
Flag
Zero Z 16 8
8085 Carry
Flag C S P
Flag
MicnopH0LESSO=(322tSástruction
SignParity
Auxiliary
Flag data/address Contents of0
Bit16
unchanged
dataBit Flag
8 isFlagReset
Flag
ndefined
10 4 7 4
(T-states)AC CyclesClock is
4 6 10 RH
affected
Carry
Machine Ve
3
Cycles
1 2 1 2 3 Flag and
1
Instruction Te will
X X
depend
Status
PSFlags fA
AC
GR on
Set the
Z
C of result
Intel
d carry
Rotate Decrement
register
MoveBIncrement
Increment
location Store in
Load of
he register 8085 execution
left
immediately the
immediately
the
pointed
the the thecontents pair
f
content contents contents
contents
out B-C
the Comments
of the by ofoperation No
accumulator
of contents
umulatorcontents of of register
register
register register
B pair of
B C
of B pair into given Set
by data by by B-C
B-C
1 one one the byte
bit
byte by of
without memory address
one 8085)
into
PROGRAM*
Memory
location
3 2. 1.
Description 9002 9001 9000 Object
Microfriend
VMC-85/9 ILCProcessor
Professional
'EC-85°
V2 kit
Memory
Locations
:HA
seGNT OSH
Op-code Mnemonics (Practicals)
y5
HLT MVI
MVIC, tfTCÀ
Mnemonics
05, |
Load
05H in
Register C HN EXPERIMENT-1
HS
Return Start
05 Operands fI Location
Memory
Starting
Comments
Operands A 05
C, 2000H9000H8000H
K
C&
IS Op-code
76 05 OE
btit
HLT register
Stop Comments
; ;CGet 0S
in;
9HH
a
Hga
PROGRAM IlARA 332
iI
Address
Memory
9004 9003 9002 9001 9000
Accumulator-FF
Result : Description :
HNAMOVB,A Object
r :r 9000H
IN ,
MOV B,
A Mnemonics 05
HLT LDA 9050H
AYT àNH
9050H,
LDANT
contents
VGHTR R SII 9050H
9001
FF
Loadthe Operands
9050 H EXPERIMENT-2
Hufadcontents
Contents
Movethe
H4R0 faaE-2 of 9050
with
Halt A Accumulator Start 76
to
(Stored)UGHT
B Ht
TGT
EIÀs eag
9050H
B Op-codes
A 76 47 90 50 3A
z0H6 f 9002
contents *
EI agT ER
;
; ; into ;Comments
; Move
Halt accumulator
Register memory ; Get 3
directly fG
the f5
the
IANT t contents
VGhHe content
A location T
to ER El
B
of of q4B
9050 9050
IS
*H
4. 2. 1
Address 3.
fB
9008 9007 9006 9005 9004 9003 9002 9001 9000 Solution:
Step-3 END VFHetr
contentsrt f gHe Step-2 Step-1:
contents Object:
of
: the À Statement
Statements : Writing
Mnemonics Program
MVI urA contents H
HLT STA ADD MVI SI HI HEA H
the
5. 4. 3. 2.
Hand 07H OSH at End
Ugyetr TS problem
yeer Mnemonics
Assemble ASMVI AS| of eRB
07HB, 0SHA, the B#
9100H B
Operands HLT 9100H
STA 0SH in
Mnemonics
GHT EXPERIMENT-3
specific Program
ADD MVI contents
contents
hT tGH
B 07H| B, A,urafta
U4 statements
OP-code AU J-HEN 4r HE
76 91 00 32 80 07 06 05 3E contents Ugyetr
$HNASTA contents gExplanation
Source HeAADD HT IAN 07H
44Rt MVI, 9100contents(HIT)
;Store ; ;Add ;Load ;Load Program
program
;Endof ; ; 9100H B
s4Uth
accumulator contents
register G AE
the Explanation
the 06H 0SH 344
ht T 44I ASadd GTI
contents contents I
of B in
in Comments 9100HÀ HT T|
accumulator accumulator
to register OPCODE 4, Move
at the
9100H of GHTeT I !
of RR R
B Immediate.
B d
ht $
fGTI contents
MVI
333
334
Step4:
ytur
oce
hT
Register Load 9008| 9001 INR
Store Load INR
Add Accumulatorthe the INR 9100 SET
RESET EXEC 9000 RUNRESET 9000 SETRESET
AccumulatoratAccumulator of
the
Register inthe
faaE3 9100H the B number
Start
Halt contentsto number 76
contents -----3E
the
contents 05H
07H
of of into
SNo.
2,
Solution(a) : (b) 8-fe(a)
accumulatorthe Step-2 End 5. *. J. Writing
Ete
: ofHer Ha the AEH I
Program.
Statements problem
SIÁE contents
contents
in
IS ht
specific
4rt l
Statements
il a
Mnemonics add
IhNIT9100 hl Statements Add EXPERIMENT-4
Load
AYGl #
Accumulator of 01Accumulator
ComplementAccumuator
faraE4 Store
9100H at to AEH Start
Move Halt the
Contents in
immediate FR the
BII
the
data
AFH
CMA
Mnemonics
AEHMVI A,
TUPBTE
ZD01)
335
336
Address 5. 4. 3.
9008 9007 9006 9005 9004 9003 9002 9001 9000
(i) Step-4 Step-3ProgramEndof
Direct
Heter
yturH : Mnemonics urA :
Subtraction
HLT STA ADI CMA MVI
contents
at
faity YH Hand
Method À
HG:(218)10 HI E
HT Assemble
Operands add l
9100H 01H AEH A,
:(100)10 9008| 9001 | irI
INR 9100 SETRESET EXEC 9000 RUNRESET INR 9000 SETRESET
hT
=(11011010),=(0110
76 AE 3E 3rgfa
Op-code
0100)2 76 91 00 32 01 C6 2F AE 3E Source
=(DA)16 Program
(64) = Program.
;Endof accumulator
; ;Store ;
accunmulator
;Add
;Complement
accumulator ;
the ;Load
accumulator
memory at
location
16
the 01H the ht
9100contents to number OPCODE
Comments
the
H. contents
of AEH
01H
HLT STA, ADI,
# 9100H
in TGM
of
Complement
Method 2's (ü)
INR
9100
SET
RESET
EXEC
9000
RUN
RESET
76 9008
3E 9001
INR
9000
SET
RESET
76 HLT 9008
91 9007
00 9006
32 9100H STA 9005
90 B
SUB 9004
64 9003
06 64H B, MVI 9002
DA 9001
3E DAH A, MVI 9000
OPCODE Operand Mnemonics Address
frGT (OPCODE)Y sHYM Program
hÌ Source 2:Step
HLT Program the End
of
fI 3.
9100H STA, Er 9100 IhRT Hrt contents cHtr
EAI contents 4.
SUBB VHt contents TGRF B
ifsI 3.
64H B,
MVI S H64
SEI tfoerB
DAH A,
MVI 2.
Mnemonics Statement 1.
S.No.
Step-1:
INR
9100
SET
RESET
EXEC
9000
RUN
RESET
76 900B
3E 9001
INR
9000
SET
RESET
htI oie at gtur Step-3:
76
HLT 900B
91
900A
00
32 9100H 9009
STA 9008
80 B ADD 9007
DA
9006
06 DA B, MVI 9005
01
C6 9004
01H ADI 9003
2F CMA 9002
64 9001
3E 64H A, MVI 9000
OPCODE Operand Mnemonics Address
fUT OPCODEA Program
at Source Step-2:
HLT program of
End
7.
910OH STA II R 9100 g contents UGyt
6.
ADDB
GG4| contents UeaHer contents #tRB
5.
DAB,MVI fl E DA StfR B
gI contents
1 4.
01H ADI, gHet
3.
CMA 2.
H64 A,
MVI 1.
nemonics Statement S.No.
Step-1:
338
program ;End
of HLT 900A
76
9009
H.
9101 and ; 91 9008
9100H inpair HL ; 00 9007
22 9100 SHLD
contents
of the ;Load
pair DE topair HL ; 9006
contents
of the ;Add 19 D
DAD
9005
00
DE pair ; 9004
FA 9003
register in
00FA ;Load 11 FA00, D, LXI
00 9002
HLpair 9001
OF
register in
000F ;Load 21 0F00, H, LXI 9000
Comments Opcode Operand Mnemonics Adress
Memory
fGI htg yiM 31t Assemble
FT Hand yrurH Step-3:
Program of
End 5.
HLT
isI s 9101
R T19100 lehT 440 contents H-L r Tf 4.
9100 SHLD,
Ggi ÀH-L pair{R contents E
D-#Z{R 3.
DADD
00FA D,
LXI 2.
000F H,
LXI 1.
Mnemonics Statements S.No.
fafdd
ht Mnemonics Statementsh Step-2:
AI| RR9101H
K INH9100H
AT contents
HR RH-L 4.
GII tffeHLÀ contents FD-E fR 3.
HI S00FA H H D-E tfie
4 2.
statements. specific problem
in thWriting
e Step-1:
=(00FA)16 11111010)2 0000 (0000 HA: fats
=(00OF)16 1111), 0000 HA:(0000
0000 Solution:
g4
fergI r4 fs HA0 16-fae Object:
EXPERIMENT-5
339
E-6 fa
Halt
9502Accumulator
at
contentsof the Store
Accumulator
Complement
accumulator 9501 with Load
Start
=(69)16 (9) (6)
1001 =0110 h4Z 1's
(SI5Tt) 0110 =1001 96H
, ratid
at A Is (96)16 H{I} h4eie
IG 1's 96H :HHH
hT HGA Solution
EXPERIMENT-6
Halt 01H 9101
09H 9100 Ans.
9101
9101H 9100H&
location Memory in INR
results the Store 9100
SET
RESET
H-L paiRegister
r EXEC
Contents
of the to 9000
D-E paiRegister
r
Contents
of the Add RUN
RESET
76 900A
D-E Register
pair in
00FA number the Load 21 9001
INR
9000
H-L pairRegister in SET
000F number the Load
RESET
Program) (Execution
the of
Start
340
b3 6.
aEnd A0H K H zero
cHeiT contents fRB
8ufI tshi
t Ì contents
_
contents B* RR fTU
C)
with (register Counter the Preset
08H'
tfrRBHÀÜYT 1.
s
ifsI H(OC)16
Specific :yruq
at Step-1
fergT Statements
=(08)16 (8)10
=(OC)16 (12)10
HSA0 8-fe Object:
tes Id
G4 JUTHT addition
aR SIrepetitive
language assembly
EXPERIMENT-7
HLT 9007
program the ;End
of 76
9006
9502H location ; 95 9005
memory accumulator
in ; 02 STA 9004
32 9502H
contents
of th;Store
e
accumulator ; CMA 9003
;Complement
the 2F
9002
95
9001
accumulator 9501H
in ; 01 9000
3A 9501H LDA
contents
of the;Load
Opcode Operand Mnemonics Address
Comments Memory
ROGRAM
I TE place 9501
ÀIAR7 iA 16
(69) HI (a)
341