programb11

# programb11 - Microprocessors & Applications (UPTU) Appendix...

This preview shows pages 1–2. Sign up to view the full content.

Appendix B  Explanation : Consider that a byte is present in the AL register and second byte is present in the BL register. We have to multiply the byte in AL with the byte in BL. We will multiply the numbers using successive addition method. In successive addition method, one number is accepted and other number is taken as a counter. The first number is added with itself, till the counter decrements to zero. Result is stored in DX register. Display the result, using display routine. For example : AL = 12 H, BL = 10 H Result = 12H + 12H + 12H + 12H + 12H + 12H + 12H + 12H + 12H + 12H Result = 0120 H  Algorithm : Step I : Initialise the data segment. Step II : Get the first number. Step III : Get the second number as counter. Step IV : Initialize result = 0. Step V : Result = Result + First number. Step VI : Decrement counter Step VII : If count 0, go to step V. Step VIII :

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 08/04/2011 for the course ECON 101 taught by Professor Lucky during the Spring '11 term at Silver Lake.

### Page1 / 2

programb11 - Microprocessors & Applications (UPTU) Appendix...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online