Sunday, 17 July 2016

Write a program in assembly language(8085) to find the sum of first 50 even numbers.


                MVI D, 00H
MVI B, 02H
MVI C, 32H
MVI A, 00H
LOOP:     ADD B
JNC LOOP1
INR D
LOOP1:   INR B
INR B
DCR C
JNZ LOOP
HLT
END

No comments:

Post a Comment

Popular Posts