Sunday, 28 October 2012

Micro processor 8085 program Program for multiplication of two 8 bit numbers

PROBLEM
Micro processor 8085 program Program for multiplication of two 8 bit numbers..

Full program with Opcode

VHVG
ADDRESS  LOOP MNEMONICS OPCODE
4200
MVI A 00 3E
4201

00
4202
MVI C 00 3E
4203

00
4204
LXI H 5000 21
4205

00
4206

50
4207
MOV B,M 46
4208
INX H 23
4209 LOOP1:  ADD M 86
420A
JNC LOOP2 D2
420B

0E
420C

42
420D
INR C 0C
420E LOOP2: DCR B 05
420F
JNZ LOOP1 C2
4210

09
4211


42
4212
STA 5200 32
4213

00
4214

52
4215
MOV A,C 79
4216
STA 5201 32
4217

01
4218

52
4219
HLT 76




Outputs
input==>
          4200: 04
           4201:03
output==>
              5200: 0C
               5201: 00

1 comment: