Professional Documents
Culture Documents
Microprocessor & Micro Controller Expt No.9
Microprocessor & Micro Controller Expt No.9
Microprocessor & Micro Controller Expt No.9
0 TITLE :
To write a program to add the contents of 10 memory locations & to store the result in the next memory location.
2. To select a memory location by entering its number in HL register. 3. To enter the number of memory locations in the register C. 4. To clear the contents of the accumulator. 5. To form a loop using JUMP instruction. 6. To add the contents of each memory location in the accumulator.
5.0 APPARATUS:
8085 Microprocessor Kit.
6.0
in the HL pair register. 7001 7002 7003 7004 7005 7006 7007 7008 7009 700A 700B 700C 50 70 AF OE OA 86 23 OD C2 06 70 77 MOV M,A Copy the contents of accumulator to memory location listed in the HL pair. Reset ADD M INX H DCR C JNZ Add the contents of memory location listed in HL pair to accumulator. Increment the contents of HL pair by 1. Decrement the contents of register C by 1. Jump if no zero to memory location 7006 XRA A MVI C, OAH Clear the contents ofaccumulator or load 00H in the accumulator. Load OA H in the register C.
700D
CF
01 01 01 01 01 XX
01 01 01 01 01 0A