Saturday, 15 October 2011

To multiply two numbers.

To multiply two numbers we can use multiple addition of that number up to the second number.

CODE:



MVI D,3
MVI B,2
MVI A,00
LABEL: ADD D
DCR B
JNZ LABEL
HLT




Screen Shot:

No comments:

Post a Comment