← Back to team overview

gnusim8085-devel team mailing list archive

[Question #702781]: Sum of series of n numbers

 

New question #702781 on gnusim8085:
https://answers.launchpad.net/gnusim8085/+question/702781

LXI  H,2501H
MVI B,00H
MOV C,M
ANI A,00H
AGAIN: INX H
ADD M
JNC NEXT
INR B
NEXT:  DCR C
JNZ AGAIN
INX H
MOV M, A
INX H
MOV M,B
HLT 


What is the mistake in this code 




-- 
You received this question notification because your team GNUSim8085
developers is an answer contact for gnusim8085.