Saturday, 16 March 2013

ALP to create multiplication table

An ALP for 8085. Multiplication table on any number between 0-9 upto nX10 if n is the number. Input the number at 9000H and see nX(0,1,2,3.....,9) from 8500H memory location to 850AH memory location. 
LDA 9000H
LXI H,8500H
MVI M,00H
INX H
MVI C,08H
STAX H
INX H
LOOP ADD A
STAX H
INX H
DCR C
JNZ LOOP
RST 1

Happy Programming

4 comments: