Professional Documents
Culture Documents
Program Code:-
Machine Label Mnemonics Operand Comments
Memory codes
address
2000 21,00,D0 LXI H,D000H HL points to the memory
location D000 H
2003 7E MOV A,M Get the contents of location
D000 H into the accumulator
2004 23 INX H Increment HL to point to next
Memory location i.e. D001H
2005 96 SUB M A = A – M i.e. compute the
subtraction
2006 23 INX H Increment HL to point to next
memory location i.e. D002H
2007 77 MOV M,A Store the result at memory
location D002 H
2008 76 HLT Terminate the execution of
program
Data:-
D000H =50H 50H
D001H=20H - 20H
_______
Result: D002H= 30H
Store the result at memory location D002 H.
Conclusion: The result of subtraction of two hexadecimal numbers is verified.
Precautions:
1. Do not press any wrong key of the keyboard.
2. Feed the correct program.
3. Press desired key only.
4. Power supply Switched Off after completing the Experiment.
5: Do not touch any IC of the kit.
Program Code:-
Precautions:
1. Do not press any wrong key of the keyboard..
2. Feed the correct program.
3. Press desired key only..
4. Power supply Switched Off after completing the Experiment.
5: Do not touch any IC of the kit.
Program Code:-
Data:
2009 DATA(2A)
200A DATA(7A)
Result:- 200B RESULT(A4)
Precautions:
1. Do not press any wrong key of the keyboard.
2. Feed the correct program.
3. Press desired key only.
4. Power supply Switched Off after completing the Experiment.
5: Do not touch any IC of the kit.
Program:-
Data 2501 – 96
2502 – 38
Result
2503 – 58
Precautionss:
1. Do not press any wrong key of the keyboard.
2. Feed the correct program.
3. Press desired key only.
4. Power supply Switched Off after completing the Experiment.
5: Do not touch any IC of the kit.
Program:
Address Code Label Mnemonics Operand Comments
2000 2A,01,25 LHLD 2501H Get multiplicand in H-L pair
2003 EB XCHG Multiplicand in D-E pair.
2004 3A,03,25 LDA 2503 H
2007 21,00,00 LXI H,0000 Initial value of product=00 in H-L
pair
200A 0E,08 MVI C,08 Count=8 in register C
200C 29 LOOP DAD H Shift partial product left by 1 bit.
200D 17 RAL Rotate multiplier left one bit. Is
multipler’s bit =1?
200E D2,12,20 JNC AHEAD No, go to AHEAD
2011 19 DAD D Product=produCt+Multiplicand
2012 AHEAD DCR C DECREMENT COUNT
2013 C2,02,20 JNZ LOOP
2014 22,04,25 SHLD 2504H Store result
2017 76 HLT STOP
Data:
Result
Procedure:-
Program
201A-20H
201B-02H
Result
201C-10H
Procedure:-
The following steps are required to implement the program-
1. Enter the numbers 32H,25H and 21H.
2. The result is to be stored in the memory location 2100H.
3. .Used GOTO Command for Executions.
4. .Reset used before see the result at the location 2100H.
Program Code:-
Conclusion: The largest number has been found from a given set of numbers.
Precautions:
1. Do not press any wrong key of the keyboard.
2. Feed the correct program.
3. Press desired key only.
4. Power supply Switched Off after completing the Experiment.
5: Do not touch any IC of the kit.
Apparatus Used: - 8085 microprocessor training kit, keyboard and power supply
Program:-
Precautions:
1. Do not press any wrong key of the keyboard.
2. Feed the correct program.
3. Press desired key only.
4. Power supply Switched Off after completing the Experiment.
5: Do not touch any IC of the kit.
Address-2050-00 2050-00
2051-FF 2051-11
2052-11 2052-FF
Conclusion: A string of numbers has been arranged in ascending order.
Precautions:
1. Do not press any wrong key of the keyboard..
2. Feed the correct program.
3. Press desired key only..
4. Power supply Switched Off after completing the Experiment.
5: Do not touch any IC of the kit.
Equipment Used: - 8085 microprocessor training kit. Keyboard and power supply.
Procedure: Procedure is as follows:
1: Switch ON of 8085 microprocessor.
2: Now press the S of keyboard.
3: Enter the address 2000H.
4: Now feed the program and execute.
Program:
Address code label Mnemonics Operands Comments
2000 21 50 20 start LXI H,2050H Load 16 bit address
2003 16 00 MVI D,09H Initialize D with 09H
2005 0E MOV C,D Initialize C for no. of data
2006 7E Check MOV A,M Move data from M to A
2007 23 INX H Increment stack pt.
2008 BE CMP M Compare M with A
2009 D2 14 20 JNC NXTBT Jump when c=0 or M<A
200C 46 MOV B,M Move M TO B
200D 77 MOV M,A Move M to A
200E 2B DCX H Decrement stack pt.
200F 70 MOV M,B Move B to M
2010 23 INX H Increment stack pt.
2011 16,o1 MVI D,01H Move immedidiate 01 to D
2013 0D NXTBT DCR C Decrement C For no. count.
2014 C2,07 20 JNZ Check Checking c=0 for ending
series
2017 7A DCR D Decrement D For no. count
2018 DA,00,20 JNZ Start Jump to start if carry flag is
set.
201B 76 HLT HLT
Result-
Precautions:
1. Do not press any wrong key of the keyboard.
2. Feed the correct program.
3. Press desired key only.
4. Power supply Switched Off after completing the Experiment.
5: Do not touch any IC of the kit.
Conclusion: The conversion of given Hexadecimal number into its equivalent ASCII has been
performed.
Precautions:
1. Do not press any wrong key of the keyboard.
2. Feed the correct program.
3. Press desired key only.
4. Power supply Switched Off after completing the Experiment.
5: Do not touch any IC of the kit.
Data:-
INPUT 4500 31H
Result:
OUTPUT 4501 OBH
Conclusion: The conversion of given ASCII number into its equivalent Hexadecimal number
has been performed.
Precautions:
1. Do not press any wrong key of the keyboard..
2. Feed the correct program.
3. Press desired key only..
4. Power supply Switched Off after completing the Experiment.
5: Do not touch any IC of the kit.
Procedure:-
1. Connect 50 pin FRC cable from interface card to 8085 microprocessor.
2. Enter the program for selected mode (mode-3).
3. Connect the probe of oscilloscope at OUT 0.
4. Give +5V to Gate 0 & give the clock to Clock 0.
5. Execute the program & see the waveforms or see the given data on LED of study module.
Program:-
Program:-
Conclusion: An DAC has been interfaced with 8085 and operation for square mode has been
verified.
Precautions:
1. Do not press any wrong key of the keyboard.
2. Feed the correct program.
3. Press desired key only.
4. Power supply Switched Off after completing the Experiment.
5: Do not touch any IC of the kit.
PROGRAM:
Conclusion: An 8255 PPI has been interfaced with 8085 and I/O operation has been verified.
Precautions:
1. Do not press any wrong key of the keyboard.
2. Feed the correct program.
3. Press desired key only.
4. Power supply Switched Off after completing the Experiment.
5: Do not touch any IC of the kit.
Program:-
Conclusion: A stepper motor has been interfaced with 8085 and operation has been verified
Precautions:
1. Do not press any wrong key of the keyboard.
2. Feed the correct program.
3. Press desired key only.
4. Power supply Switched Off after completing the Experiment.
5: Do not touch any IC of the kit.