8051 Program gives correct answer but is not stopping in edSim8051

320 views Asked by At
MOV 30H,#03H
MOV 31H,#03H
MOV 32H,#01H
MOV 33H,#04H
CLR C
MOV R0,#30H
MOV R2,#03H
MOV A,@R0
MOV 50H,A
UP: INC R0
MOV A,@R0
CJNE A,50H,DN
SJMP NEXT
DN: JC NEXT
MOV 50H,A
NEXT: DJNZ R2,UP
INC R0
MOV A,50H
MOV @R0,A
END

This is the 8051 code that keeps on running and does not stop

0

There are 0 answers