Sunday, 28 October 2012

microprocessor 8085 program for division of 2 8it numbers

Problem
microprocessor 8085 program for division of 2 8it numbers
Program with opcode


ADDRESS LOOP MNEMONICS OPCODE
4200
LXI H 4500 21
4201

0
4202

45
4203
MOV A,M 7E
4204
MVI C,00 0E
4205

0
4206
INX H 23
4207
MOV B,M 46
4208 LOOP 1: CMP B B8
4209
JC LOOP2 DA
420A

11
420B


42
420C
SUB B 90
420D
INR C 0C
420E
JMP LOOP1 C3
420F

8
4210

42
4211 LOOP2: STA 5201 32
4212

1
4213

52
4214
MOV A,C 79
4215
STA 5200 32
4216

0
4217

52
4218
HLT 76





input==>4500:08           
               4501:04
outpit==>5200:02
                 5201:00

No comments:

Post a Comment