8085 Kit and Power supply
ALGORITHM:
8-BIT MULTIPLICATION:
1. Initialize a register for carry.
2. Get the two input data (multiplier and multiplicand) from memory locations.
3. Clear accumulator for repeated addition and have multiplier as count.
4. Add multiplicand with accumulator content.
5. Check for carry. If carry =1, goto next step, else goto step 7.
6. Increment the carry register.
7. Decrement the count.
8. Check for count. If count=0, goto next step, else goto step 4.
9. Store the result and carry in memory locations.
10. Stop program execution.
Move immediate 00 to C register
4102
4103
Address 4500
4105
4106
Address 4501
4109
410A
410E
410F
4110
Jump on no zero to label location L2
4113
4114
4115
4503
4116
4117
4118
4504
411A
411B
411C
1. Initialize a register for quotient.
2. Get the two input data (divisor and dividend) from memory locations.
3. Compare divisor and dividend.
4. Check for carry, if set goto step 8, else to next step.
5. Subtract divisor from dividend.
6. Increment the quotient register.
7. Go to step 3.
8. Store the remainder and quotient in memory locations.
9. Stop program execution.
Move immediate 00 to C register
4102
4103
Address 4500
4105
4106
Jump on carry to label location L2
410C
410D
410E
Jump to label location L2
4111
4112
4113
4503
4114
4115
4116
4504
4118
4119
411A
1. Key in the opcodes.
2. Give the input data at specified memory locations.
3. Execute the program.
4. Check the results at specified output locations.