Sunteți pe pagina 1din 56

Government College of Engineering, Jalgaon.

Government College of Engineering, Jalgaon

Laboratory Manual

Microprocessor and Microcontroller

Department of Electrical Engineering


Name:______________________________________ Class: Third Tear Electrical Engineering Roll No.__________ Year:___________________

T. OF ELECTRICAL

DEP

Government College of Engineering, Jalgaon.

Government College of Engineering, Jalgaon


Department of Electrical Engineering

Subject: Microprocessor and Microcontroller


System
List of Experiments Sr.No. Experiment Name 1 Program to find Addition of two 8 bit Number. 2 Program to find Subtraction of two 8 bit Number. 3 Program to find Multiplication of two 8 bit Number. 4 Program to find Division of two 8 bit Number. 5 Program to find Largest / Smallest No. in data array. 6 Program to arrange a series of numbers in Ascending/ Descending order. 7 Write an assembly language program for Block move and Block exchange. 8 To study ADC 0809 interface with IC 8085 using PPI 8255 9 To study DAC 0800 interface with IC 8085 using PPI 8255 10 To study PKBDC IC 8279 and writing program for display of TE ELEC. 11 Program to convert Hexadecimal into Binary. 12 STUDY OF Architecture of 8086 Page No 2 7 11 16 21 27 33 38 44 50 54

This is to certify that Mr./Miss_______________________________________________ has carried out the above mentioned experiments as term work in the subject Microprocessor and Microcontroller System at T.E.(E&TC)

Staff Incharge

HOD

Principal

T. OF ELECTRICAL

DEP

Government College of Engineering, Jalgaon.

EXPT. NO.

01
Nos.

Addition of Two 8 Bit

T. OF ELECTRICAL

DEP

Government College of Engineering, Jalgaon.

Start

Load 1st number in the accumulator.

Load 2nd number in the register B

Move register B to register D

Add accumulator with register D & store result in accumulator.

Stop

Experiment no. 01
T. OF ELECTRICAL

Date: 4
DEP

Government College of Engineering, Jalgaon.

AIM : Addition of two 8 bit nos. APPARATUS : Anshuman 8085 kit ,power supply ,keyboard PROGRAM STATEMENT : Write assembly language program to add two 8bit nos. whose result is 8bit & store it in accumulator . PROGRAM : Memory Address C300H C301H C302H C303H C304H C305H C306H Opcode 3E 11 06 12 50 82 CF Label Mnemonics start MVI A,11H MVI B,12H MOV D,B ADD D RST 1 Comments Move data 11 H to register A Move data 12 H to register B Move (B) to (D) Addition of (D) to (A) Stop

end

PROCEDURE : 1) Give power supply to 8085 p kit 2) Enter the instruction opcode to given address 3) Execute the program step by step(refer appendix A) 4)Check the result by checking the contents of register RESULT : Data Result CONCLUSION: Name of register Acc (A) B Acc(A) Content 11 12 23

Signature with Date Subject Incharge Oral Based Questions


T. OF ELECTRICAL

DEP

Government College of Engineering, Jalgaon.

1. What is Accumulator ?

2. What do you mean by opcode?

3. What do you mean by assembly language programming ?

4. Explain the instructions: MVI, MOV

5. Explain the instruction:ADD

T. OF ELECTRICAL

DEP

Government College of Engineering, Jalgaon.

EXPT. NO.

02
Subtraction of two 8 bit No.s

T. OF ELECTRICAL

DEP

Government College of Engineering, Jalgaon.

Start

Load 5000H memory address in HL register pair

Move memory content of HL in register B

Increment HL by 1

Mov Memory content of HL in register A

Subtract register B from A & store result in accumulator

Stop

Experiment no. 02
T. OF ELECTRICAL

Date : 8
DEP

Government College of Engineering, Jalgaon.

AIM: Subtraction of two 8 bit nos APPARATUS: Anshuman 8085 kit ,power supply ,keyboard PROGRAM STATEMENT : Write an assembly language program to subtract two 8bit nos. whose result is 8bit & store it in accumulator .In Memory Location C300H second bit is stored i.e 12H PROGRAM : Memory Address C200H C200H C204H C205H C206H C207H C208H C209H Opcode 21 00 C3 46 23 7E 90 CF Label Mnemonics start LXI H, C300H MOV B,M INX H MOV A,M SUB B RST 1 Comments Load HL pair by C300H Move (M) to (B) Increment HL pair by 1 Move (M) to (A) Subtract reg B from accumulator Stop

end

PROCEDURE : 1) Give power supply to 8085 p kit 2) Enter the instruction opcode to given address 3) Execute the program step by step (refer appendix A) 4)Check the result by checking the contents of register RESULT : Data Result CONCLUSION : Memory Location C300H C301H Accumulator Content 12

Signature with Date Subject Incharge Oral Based Questions 9


DEP

T. OF ELECTRICAL

Government College of Engineering, Jalgaon.

1.Explain the instruction: LXI

2.Explain the instruction: INX

3.Explain the instruction: SUB

4.Compare instruction SUB B and CMP B .

5.What is the difference between DCR B and DCX B ?

T. OF ELECTRICAL

10

DEP

Government College of Engineering, Jalgaon.

EXPT. NO.

03
Multiplication of two 8 bit nos.

T. OF ELECTRICAL

11

DEP

Government College of Engineering, Jalgaon.

Experiment no.03
T. OF ELECTRICAL

Date: 12
DEP

Government College of Engineering, Jalgaon.

AIM: Multiplication of two 8-bit nos. APPARATUS: ANSHUMAN 8085 kit, Power supply, keyboard. PROGRAM STATEMENT: Write an assembly language program for multiplication of two 8 bit nos 04 & 03 which is in memory location C200 & C201 respectively &store the result in memory location C300 & C301. PROGRAMME: MEMORY ADDRESS C100 H C101 H C102 H C103 H C104 H C105 H C106 H C107H C108H C109H C10AH C10BH C10CH C10D H C10E H C10FH C110H C111H OPCODE 3A 00 C2 5F 16 00 3A 01 C2 4F 21 00 00 19 0D C2 0D C1 13
DEP

LABEL START

MNEMONICS LDA C200H

COMMENTS Load accumulator with C200H

MOV E,A MVI D,00 LDA C201H

Move the contents of acc to E register Move 00 to register D Load accumulator with C201H

MOV C,A LXI H, 0000H

Move the contents of acc to C register i.e set the counter Load H-L pair with 0000H

BACK

DAD D DCR C JNZ BACK

Add content of HL register to DE register & store result in HL register Decrement register C by 1 Jump if counter( C0) is not zero or Zero flag is not set to mem loc C10D H

T. OF ELECTRICAL

Government College of Engineering, Jalgaon. C112 H C113 H C114 H C115 H 22 00 C3 CF SHLD C300H Store the result in mem loc 2300 H from reg pair HL

END

RST 1

STOP

PROCEDURE: 1) 2) 3) 4) Give power supply to 8085 p kit Enter the instruction opcode to given address Execute the program step by step(refer appendix A) Check the result by checking the contents of register.

RESULT: Data Result Memory Location C200H C201H C300H C301H Content 4 3 0C 00

CONCLUSION:

Signature with Date Subject Incharge Oral Based Questions

T. OF ELECTRICAL

14

DEP

Government College of Engineering, Jalgaon. 1. What do you mean by addressing modes and explain the types of addressing modes

2. Explain the instructions ADD ADC

3. Explain the instructions ACI SUB

4. Explain the instructions SBI SUI

5.What is the use of LABEL ?

T. OF ELECTRICAL

15

DEP

Government College of Engineering, Jalgaon.

EXPT. NO.

04
Division of two 8 bit nos

T. OF ELECTRICAL

16

DEP

Government College of Engineering, Jalgaon.

Start

Load no.1 & no. 2 in A & C register

Initiate counter to count no. of subtraction performed

(no1 no2)

B=B+1 counter

Is
no1 > no2 yes ?

Take result in C register i.e. remainder

Stop

Experiment no.4
T. OF ELECTRICAL

Date : 17
DEP

Government College of Engineering, Jalgaon.

AIM: Division of two 8-bit nos. APPARATUS: ANSHUMAN 8085 kit, Power supply, keyboard. PROGRAM STATEMENT: Write an assembly language program for division of two 8 bit nos 08 & 02 which is in registerA & C respectively &store the result in register B & C. PROGRAMME:

MEMORY ADDRESS C200 H C201 H C202 H C203 H C204 H C205 H C206 H C207H C208H C209H C20AH C20BH C20CH C20D H

OPCODE 3E 08 06 00 0E 02 91 04 B9 D2 06 C2 4F CF

LABEL START

MNEMONICS MVI A,08

COMMENTS Move 08 to registerA i.e get the 1st no. in acc Move 00 to register B i.e Make reg B clear

MVI B,00

MVI C,02

Move 02 to register C i.e get the 2nd no. in acc Subtract reg C from acc; result store in acc. Increment reg B by 1 Compare reg C with acc If C 0 jump to LOOP C206

LOOP

SUB C INR B CMP C JNC LOOP

MOV C,A END RST-1

Move the contents of acc to C register stop

PROCEDURE:
T. OF ELECTRICAL

18

DEP

Government College of Engineering, Jalgaon.

1) 2) 3) 4)

Give power supply to 8085 p kit Enter the instruction opcode to given address Execute the program step by step (refer appendix A) Check the result by checking the contents of register.

RESULT: Data Result Name of register B C B C Content 00 02 04 00

CONCLUSION:

Signature with Date Subject Incharge Oral Based Questions 19


DEP

T. OF ELECTRICAL

Government College of Engineering, Jalgaon. 1.Explain the conditional Jump instructions.

2.Explain CMP instruction :

3.Explain Restart instruction.

4.Explain Program Counter.

5.Explain Stack Pointer.

T. OF ELECTRICAL

20

DEP

Government College of Engineering, Jalgaon.

EXPT. NO.

05

Write a program to find the largest / smallest No. in a data array

ADDITION FLOWCHART

T. OF ELECTRICAL

21

DEP

Government College of Engineering, Jalgaon. FOR LARGEST NUMBER:

FOR SMALLEST NUMBER:


T. OF ELECTRICAL

22

DEP

Government College of Engineering, Jalgaon.

Experiment no.5 AIM :


T. OF ELECTRICAL

Date:

23

DEP

Government College of Engineering, Jalgaon. 1) Write program to find the largest number in a data array. 2) Write program to find the smallest number in a data array.

APPARATUS: ANSHUMAN 8085 kit, Power supply, keyboard.

PROGRAM STATEMENT: TO FIND LARGEST/ SMALLEST NO.: The numbers in series are: 98, 75 and 99 PROGRAM: TO FIND LARGEST NO.: MEMORY OPCODE LABEL ADDRESS C000 H 21 START C001 H C002 H C003 H C004 H C005 H C006 H C007 H C008 H C009 H C00A H C00B H C00C H C00D H C00E H 00 C5 4E 23 7E 0D 23 BE D2 0D C0 7E 0D C2 AHEAD

MNEMONICS LXI H,C500 H

COMMENTS Address for count in HL pair

MOV C,M INX H MOV A,M DCR C INX H CMP M JNC AHEAD

Count in register C Address of first no. in HL pair First no. in accumulator Decrement count Address of next no. Compare next no. with previous maximum no. Is next no. > previous no.? No, larger no. is in accumulator. Go to the label AHEAD.

LOOP

MOV A,M DCR C JNZ LOOP 24

Yes, Get larger number in accumulator Decrement count

DEP

T. OF ELECTRICAL

Government College of Engineering, Jalgaon. C00F H C010 H C011 H C012 H C013 H C014 H 07 C0 32 00 C2 CF STA C200 H Store result in C200 H

RST

Stop

PROGRAM: TO FIND SMALLEST NO.: MEMORY OPCODE LABEL ADDRESS C000 H 21 START C001 H C002 H C003 H C004 H C005 H C006 H C007 H C008 H C009 H C00A H C00B H C00C H C00D H C00E H C00F H C010 H C011 H C012 H C013 H C014 H 00 C5 4E 23 7E 0D 23 BE DA 0D C0 7E 0D C2 07 C0 32 00 C2 CF AHEAD

MNEMONICS LXI H,C500 H

COMMENTS Address for count in HL pair

MOV C,M INX H MOV A,M DCR C INX H CMP M JC AHEAD

Count in register C Address of first no. in HL pair First no. in accumulator Decrement count Address of next no. Compare next no. with previous maximum no. Is next no.< previous no.? No, Smaller no. is in accumulator. Go to the label AHEAD.

LOOP

MOV A,M DCR C JNZ LOOP

Yes, Get larger number in accumulator Decrement count

STA C200 H

Store result in C200 H

RST 25

Stop
DEP

T. OF ELECTRICAL

Government College of Engineering, Jalgaon.

PROCEDURE: 1) 2) 3) 4) Give power supply to 8085 p kit Enter the instruction opcode to given address Execute the program step by step(refer appendix A) Check the result by checking the contents of register.

RESULT : FOR LARGEST NUMBER: Memory Location Data C500H C501H C502H C503H Result C200H FOR SMALLEST NUMBER: Memory Location Data C500H C501H C502H C503H Result C200H CONCLUSION:

Content 03 98 75 99 99 Content 03 98 75 99 03

Signature with Date Subject Incharge

T. OF ELECTRICAL

26

DEP

Government College of Engineering, Jalgaon.

EXPT. NO.

06

Write a program To arrange a series of numbers in Ascending/ Descending order.

Experiment no.6 AIM:

Date:

1) Write a program to arrange a series of numbers in Ascending order. 2) Write a program to arrange a series of numbers in Descending order.
T. OF ELECTRICAL

27

DEP

Government College of Engineering, Jalgaon. APPARATUS: ANSHUMAN 8085 kit, Power supply, keyboard. PROGRAM: WRITE PROGRAM TO ARRANGE A DATA ARRAY IN ASCENDING AND DESCENDING ORDER.: MEMORY OPCODE LABEL MNEMONICS COMMENTS ADDRESS C000 H 06 Start MOV B, 04H C001 H C002 H C003 H C004 H C005 H C006 H C007 H C008 H C009 H C00A H C00B H C00C H C00D H C00E H C00F H C010 H C011 H C012H C013H C014H C015H C016H C017H C018H C019H C01AH 00 21 00 C1 0E 04 7E 23 BE D2/DA 12 C0 56 77 2B 72 23 OD C2 07 C0 05 C2 02 C0 CF

LXI H,C100

MOV C, 04H Loop MOV A,M INX H CMP M JNC/JC

MOV D,M MOV M,A DCX H MOV M,D INX H DCR C JNZ Loop

DCR B JNZ C002

STOP

RST

PROCEDURE: 1) Give power supply to 8085 p kit


T. OF ELECTRICAL

28

DEP

Government College of Engineering, Jalgaon. 2) Enter the instruction opcode to given address 3) Execute the program step by step (refer appendix A) 4) Check the result by checking the contents of register. RESULT: Data Memory Location C100H C101H C102H C103H C104H C105H C101H C102H C103H C104H C105H Content 05 E5 A9 96 B4 15 15 96 A9 B4 E5

Result

CONCLUSION:

Signature with Date Subject Incharge Oral Based Questions

T. OF ELECTRICAL

29

DEP

Government College of Engineering, Jalgaon.

T. OF ELECTRICAL

30

DEP

Government College of Engineering, Jalgaon.

EXPT NO.

07
Write an assembly language program for Block move and Block Exchange

Experiment no. 07 AIM :

Date:

Write an assembly language program for Block move and Block Exchange APPARATUS: ANSHUMAN 8085 kit, Power supply, keyboard. 31
T. OF ELECTRICAL

DEP

Government College of Engineering, Jalgaon.

PROGRAM : Assembly language program for Block exchange. Assume that C200 H and C300H have 10 bytes stored in memory. MEMORY OPCODE LABEL MNEMONICS COMMENTS ADDRESS C000 H 31 LXI SP,CFFF H INITIALIZATION OF STACK POINTER. C001 H FF C002 H CF C003 H 21 LXI H,C200 H C004 H C005 H C006 H C007 H C008 H C009 H C00A H C00B H C00C H C00D H C00E H C00F H C010 H 00 C2 11 00 C3 0E OA 7E 47 1A 77 78 12

LXI D,C300 H

MVI C,OA H BACK MOV A,M MOV B,A LDAX D MOV M,A MOV A,B STAX D

C011 H 23 INX H C012 H 13 INX D C013 H 0D DCR C C014 H C2 JNZ BACK C015 H 0B C016 H C0 C017 H CF RST Assembly language program for block move. MEMORY OPCODE LABEL MNEMONICS ADDRESS C000 H 16 MVI D,0AH C001 H C002 H 0A 21

COMMENTS INITIALIZATION CONTER

LXI H,C200 H 32
DEP

T. OF ELECTRICAL

Government College of Engineering, Jalgaon. C003 H C004 H C005 H C006 H C007 H C008 H C009 H C00A H C00B H C00C H C00D H C00E H C00F H C010 H C011 H C012 H C013H C014H C015H 00 C2 0E 00 06 C3 7E E5 60 69 77 E1 23 0C 15 C2 09 C0 CF

MVI C, 00H MVI B, C3 LOOP MOV A,M PUSH H MOV H,B MOV L,C MOV M,A POP H INX H INR C DCR D JNZ LOOP

CF

PROCEDURE: 5) 6) 7) 8) Give power supply to 8085 p kit Enter the instruction opcode to given address Execute the program step by step(refer appendix A) Check the result by checking the contents of register.

RESULT: Data Memory Location C200H C201H C202H C203H C204H 33 Content 11 22 33 44 55
DEP

T. OF ELECTRICAL

Government College of Engineering, Jalgaon. C205H C300H C301H C302H C303H C304H C305H 66 11 22 33 44 55 66

Result

CONCLUSION:

Signature with Date Subject Incharge

Oral Based Questions :

T. OF ELECTRICAL

34

DEP

Government College of Engineering, Jalgaon.

T. OF ELECTRICAL

35

DEP

Government College of Engineering, Jalgaon.

EXPT. NO.

08
To study ADC 0809 interface with IC 8085 using PPI 8255

Experiment no. 9 AIM: To study ADC 0809 interface with IC 8085 using PPI 8255 APPARATUS:
ANSHUMAN 8085 kit, Power supply, keyboard.

Date:

T. OF ELECTRICAL

36

DEP

Government College of Engineering, Jalgaon.

Fig.: ADC Interfacing with 8085uP through P.P.I. IC-8255 PROGRAM: Assume IC 8255 address as 00H, 01H, 02H, 03H for port A, port B, port C, CWR. CONTROL WORD FORMAT: FOR I/O MODE MSF MS2 MS1 PA PCU MS PB PCL

CONTROL WORD FORMAT: FOR BSR MODE BSR F X X X BS2 BS1 BS6 BS/R

CWR FOR GIVEN PROGRAM:


T. OF ELECTRICAL

37

DEP

Government College of Engineering, Jalgaon. 1 0 0 0 0 0 1 0

PROGRAM FOR BLINKING L.E.D s MEMORY OPCODE LABEL MNEMONICS ADDRESS

COMMENTS

T. OF ELECTRICAL

38

DEP

Government College of Engineering, Jalgaon.

PROCEDURE: 1) Give power supply to 8085 p kit 2) Enter the instruction opcode to given address 3) Execute the program step by step (refer appendix A) 4) Check the result by checking the contents of register. RESULT: 39
DEP

T. OF ELECTRICAL

Government College of Engineering, Jalgaon.

CONCLUSION:

Signature with Date Subject Incharge

Oral Based Questions:

T. OF ELECTRICAL

40

DEP

Government College of Engineering, Jalgaon.

EXPT. NO.

09
To study DAC 0808 interface with IC 8085 using PPI 8255

T. OF ELECTRICAL

41

DEP

Government College of Engineering, Jalgaon.

Experiment no 10 AIM : To study DAC 0808 interface with IC 8085 using PPI 8255 APPARATUS:
ANSHUMAN 8085 kit, Power supply, keyboard.

Date:

INTERFACING DIAGRAM:
T. OF ELECTRICAL

42

DEP

Government College of Engineering, Jalgaon.

PROGRAM : PROGRAM FOR SQUARE WAVE GENERATOR. MEMORY OPCODE LABEL MNEMONICS ADDRESS C000 H LXI SP,2FFF H C001 H C002 H C003 H C004 H C005 H C006 H C007 H C008 H C009 H C00A H C00B H C00C H C00D H C00E H C00F H C010 H C011 H C012 H
T. OF ELECTRICAL

COMMENTS INITIALIZE STACK POINTER

MVI A,80 H

8255 INIATILIZE PORT A IS OUTPUT PORT. MODE 0

OUT 03 H BACK MVI A, FF H OUT 00 H CALL DELAY SEND HIGH TO PORT A

MVI A ,00 H OUT 00 H CALL DELAY 43

SEND LOW TO PORT A

DEP

Government College of Engineering, Jalgaon. C013 H C014 H C015 H C016 H C017 H

JMP BACK

PROCEDURE: 1) Give power supply to 8085 p kit 2) Enter the instruction opcode to given address 3) Execute the program step by step (refer appendix A) 4) Check the result by checking the contents of register. RESULT:

CONCLUSION:

Signature with Date Subject Incharge

Oral Based Questions :

T. OF ELECTRICAL

44

DEP

Government College of Engineering, Jalgaon.

T. OF ELECTRICAL

45

DEP

Government College of Engineering, Jalgaon.


EXPT. NO.

10
To Study P.K.B.D.C. IC 8279 and wrinting program to dispay TE ELECT, if key 0 is prssed.

Experiment no. 12 AIM:

Date:

To Study P.K.B.D.C. IC 8279 and writing program for display of t E ELEC. THEORY: Features of IC-8279/8279-5 MCS-85TM compatible 8279-5 Simultaneous keyboard display operations
T. OF ELECTRICAL

46

DEP

Government College of Engineering, Jalgaon. Scanned keyboard mode Scanned sensor mode Strobed input entry mode 8- character keyboard FIFO 2-key lockout or N- key rollover with contact debounce Dual 8- or16- numerical display Single 16-character display Right or Left entry 16- byte display RAM Mode programmable from CPU Programmable scan timing Interrupt out put on key entry.

Pin diagram:

Internal Block Diagram:

T. OF ELECTRICAL

47

DEP

Government College of Engineering, Jalgaon.

INTERFACING DIAGRAM:

PROGRAM: PROGRAM TO DISPLAY TE ELEC, IF KEY 0 IS PRESSED.


T. OF ELECTRICAL

48

DEP

Government College of Engineering, Jalgaon. MEMORY ADDRESS C000 H C001 H C002 H C003 H C004 H C005 H C006 H C007 H OPCODE LABEL MNEMONICS LXI SP,CFFF H COMMENTS INITIALIZE STACK POINTER

LXI H,C200 H

DISPAY MESSAGE

MVI C, 06 H MVI A, 00 H 8279 INITIALISED AS SCANNED KEYBORD MODE, TWO KEY LOCK OUT MODE AND 8 DIGIT DISPLAY WITH LEFT ENTRY.

C008 H C009 H C00A H C00B H C00C H C00D H C00E H C00F H C010 H C011 H C012 H C013 H C014 H C015 H C016 H C017 H BACK1

OUT 11 H MVI A, 3E H DEFINE CLK PRESCALOR

OUT 11H MVIA, 40 H OUT 11 H BACK IN 11 H ANI 01 H TO READ CONTROL PORT. READ FIFO COMMAND

MEMORY ADDRESS C218 H

OPCODE

LABEL

MNEMONICS CPI 00H

COMMENTS

T. OF ELECTRICAL

49

DEP

Government College of Engineering, Jalgaon. C219 H C21A H C21BH C21CH C21D H C21E H C21 F H C220 H C221 H C222 H C223 H C224 H C225 H C226 H C227 H C228 H C229 H C22A H C22BH

JNZ BACK

IN 10H MVI A, 90 H OUT 11 H BACK2 MOV A, M OUT 10H INX H DCR C JNZ BACK 2

READ DATA PORT. IF KEY 0 PRESSED WRITE DRAM

HLT

PROCEDURE: 1) Give power supply to 8085 p kit 2) Enter the instruction opcode to given address 3) Execute the program step by step (refer appendix A) 4) Check the result RESULT:

CONCLUSION:

T. OF ELECTRICAL

50

DEP

Government College of Engineering, Jalgaon.

EXPT. NO.

Signature with Date Subject Incharge TO CONVERT HEXADECIMAL NO. INTO BINARY NO.

11

T. OF ELECTRICAL

51

DEP

Government College of Engineering, Jalgaon.

Experiment no. 01 AIM : Hexadecimal to Binary Conversion


T. OF ELECTRICAL

Date:

52

DEP

Government College of Engineering, Jalgaon.

APPARATUS : Anshuman 8085 kit ,power supply ,keyboard PROGRAM STATEMENT : Write assembly language program to convert Hex no into binary and stored the result at memory location C150H. MEMORY ADDRESS C000 H C001 H C002 H C003H C004H C 005H C 006H C 007H C 008H C 009H C 00AH C 00BH C 00CH C 00DH C 00EH C 00FH C 010H C 011H C 012H C013H C014H C015H C016H C017H OPCODE 21 50 C1 06 08 3E 54 0F DA 10 C0 36 00 C3 12 C0 36 01 23 05 C2 07 C0 CF LABEL START MNEMONICS LXI H,C150H COMMENTS

MVI B, 08H

MVI A, 54H LOOP RRC JC LOOP 2

MVI M,00 JMP COMMON

LOOP 2

MVI M ,01

COMMON INX H DCR B JNZ LOOP

END

RST

PROCEDURE: 1) Give power supply to 8085 p kit 2) Enter the instruction opcode to given address 3) Execute the program step by step (refer appendix A) 4) Check the result
T. OF ELECTRICAL

53

DEP

Government College of Engineering, Jalgaon.

RESULT:

CONCLUSION:

Signature with Date Subject Incharge

T. OF ELECTRICAL

54

DEP

Government College of Engineering, Jalgaon.

EXPT. NO.

12
STUDY OF ARCHITECTURE OF 8086

T. OF ELECTRICAL

55

DEP

Government College of Engineering, Jalgaon.

T. OF ELECTRICAL

56

DEP

S-ar putea să vă placă și