8085 Programming: 8 BIT MULTIPLICATION: PRODUCT 16-BIT



8085 Programming








       LHLD 2501

       XCHG

       LDA 2503

       LXI H,0000

       MVI C,08



LOOP:     DAD H

       RAL

       JNC AHEAD

       DAD D



AHEAD:  DCR C

       JNZ LOOP

       SHLD 2504

       HLT





LSB OF MULTIPLICAND - 84H, MSB OF MULTIPLICAND - 00H ,MULTIPLIER - 56H





ANSWER

AT ADDRESS 2504 - 58H, LSBs OF PRODUCT

AT ADDRESS 2505 - 2CH, MSB sOF PRODUCT





Comments

Popular posts from this blog

Write a Program to Add two 3x3 Matrix using C

C program for Unit Conversion

Write a Program to Add two 5x5 Matrix using C