1,323 views
0 votes
0 votes
how many no of times the instruction sequence below will loop before coming out of loop?

A1;  MOV AL,00H

      INC AL

      JNZ A1

1 Answer

4 votes
4 votes
It will run infinite time, because in each step you are loding 00H into accumulater and incrementing it and checking that, jump if accumulator is not zero. It will never be zero. It will always be 1.

Related questions

1 votes
1 votes
2 answers
1
ajit asked Sep 17, 2015
15,999 views
how many number of times the instruction sequence below will loop before coming out of the loop?             MOV AL,00H  A1:       INC AL      ...
0 votes
0 votes
3 answers
2
anonymous asked Jun 14, 2017
1,208 views
1 votes
1 votes
1 answer
3
Mak Indus asked Jan 11, 2019
2,901 views
How many processes will be created when we run the below program?main ( ){Printf (“Hi”);fork ( );Printf (“Hello”);fork ( );fork ( );}(a) 3 ...